| Total Complexity | 9 |
| Total Lines | 107 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Group implements AttributeItem, AttributeContainer |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * |
||
| 13 | * @var Schema |
||
| 14 | */ |
||
| 15 | protected $schema; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string|null |
||
| 19 | */ |
||
| 20 | protected $doc; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $name; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var AttributeItem[] |
||
| 29 | */ |
||
| 30 | protected $attributes = array(); |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $name |
||
| 34 | */ |
||
| 35 | public function __construct(Schema $schema, $name) |
||
| 36 | { |
||
| 37 | $this->schema = $schema; |
||
| 38 | $this->name = $name; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function getName() |
||
| 45 | { |
||
| 46 | return $this->name; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param string $name |
||
| 51 | * |
||
| 52 | * @return $this |
||
| 53 | */ |
||
| 54 | public function setName($name) |
||
| 55 | { |
||
| 56 | $this->name = $name; |
||
| 57 | return $this; |
||
| 58 | } |
||
| 59 | |||
| 60 | public function addAttribute(AttributeItem $attribute) |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return AttributeItem[] |
||
| 67 | */ |
||
| 68 | public function getAttributes() |
||
| 69 | { |
||
| 70 | return $this->attributes; |
||
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @return string|null |
||
| 75 | */ |
||
| 76 | public function getDoc() |
||
| 77 | { |
||
| 78 | return $this->doc; |
||
| 79 | } |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @param string $doc |
||
| 83 | * |
||
| 84 | * @return $this |
||
| 85 | */ |
||
| 86 | public function setDoc($doc) |
||
| 87 | { |
||
| 88 | $this->doc = $doc; |
||
| 89 | return $this; |
||
| 90 | } |
||
| 91 | |||
| 92 | /** |
||
| 93 | * @return Schema |
||
| 94 | */ |
||
| 95 | public function getSchema() |
||
| 98 | } |
||
| 99 | |||
| 100 | /** |
||
| 101 | * @param string $attr |
||
| 102 | */ |
||
| 103 | public static function findSomethingLikeThis( |
||
| 115 | } |
||
| 116 | } |
||
| 117 |