| 1 | <?php |
||
| 7 | abstract class Item implements SchemaItem |
||
| 8 | { |
||
| 9 | protected $doc; |
||
| 10 | |||
| 11 | protected $schema; |
||
| 12 | |||
| 13 | protected $name; |
||
| 14 | |||
| 15 | protected $type; |
||
| 16 | |||
| 17 | 47 | public function __construct(Schema $schema, $name) |
|
| 22 | |||
| 23 | 47 | public function getName() |
|
| 27 | |||
| 28 | public function setName($name) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return Type |
||
| 37 | */ |
||
| 38 | 22 | public function getType() |
|
| 42 | |||
| 43 | 47 | public function setType(Type $type) |
|
| 49 | |||
| 50 | 1 | public function getDoc() |
|
| 51 | { |
||
| 52 | 1 | return $this->doc; |
|
| 53 | } |
||
| 54 | |||
| 55 | 47 | public function setDoc($doc) |
|
| 61 | |||
| 62 | 47 | public function getSchema() |
|
| 66 | } |
||
| 67 |