append($content); } $this->width = $width; } public function append($content) { $this->contents[] = $content; return $this; } public function row($content) { if ($content instanceof \Closure) { $row = new Row(); call_user_func($content, $row); } else { $row = new Row($content); } $this->append($row); } /** * @param mixed $span * @return $this */ public function span($span) { $this->span = $span; return $this; } /** * @param mixed $offset * @return $this */ public function offset($offset) { $this->offset = $offset; return $this; } /** * @param mixed $push * @return $this */ public function push($push) { $this->push = $push; return $this; } /** * @param mixed $pull * @return $this */ public function pull($pull) { $this->pull = $pull; return $this; } /** * @param mixed $tag * @return $this */ public function tag($tag) { $this->tag = $tag; return $this; } /** * @param array $contents * @return $this */ public function contents(array $contents) { $this->contents = $contents; return $this; } }