| Total Complexity | 4 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | abstract class AbstractNamedGroupItem |
||
| 6 | { |
||
| 7 | use NamedItemTrait; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var Schema |
||
| 11 | */ |
||
| 12 | protected $schema; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string|null |
||
| 16 | */ |
||
| 17 | protected $doc; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $name |
||
| 21 | */ |
||
| 22 | public function __construct(Schema $schema, $name) |
||
| 23 | { |
||
| 24 | $this->schema = $schema; |
||
| 25 | $this->name = $name; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return string|null |
||
| 30 | */ |
||
| 31 | public function getDoc() |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $doc |
||
| 38 | * |
||
| 39 | * @return $this |
||
| 40 | */ |
||
| 41 | public function setDoc($doc) |
||
| 42 | { |
||
| 43 | $this->doc = $doc; |
||
| 44 | |||
| 45 | return $this; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return Schema |
||
| 50 | */ |
||
| 51 | public function getSchema() |
||
| 54 | } |
||
| 55 | } |
||
| 56 |