| 1 | <?php |
||
| 13 | abstract class Element implements |
||
| 14 | ElementInterface, |
||
| 15 | WithModel, |
||
| 16 | Arrayable, |
||
| 17 | Jsonable, |
||
| 18 | JsonSerializable |
||
| 19 | { |
||
| 20 | protected $type; |
||
| 21 | |||
| 22 | protected $name; |
||
| 23 | protected $title; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var \Illuminate\Database\Eloquent\Model |
||
| 27 | */ |
||
| 28 | protected $model; |
||
| 29 | |||
| 30 | public function __construct($name, $title) |
||
| 35 | |||
| 36 | public function getModel() |
||
| 40 | |||
| 41 | public function setModel(Model $model) |
||
| 47 | |||
| 48 | public function toArray() |
||
| 56 | |||
| 57 | public function jsonSerialize() |
||
| 61 | |||
| 62 | public function toJson($options = 0) |
||
| 66 | |||
| 67 | public function __toString() |
||
| 71 | } |
||
| 72 |