| Total Complexity | 6 |
| Total Lines | 61 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | class PropertyRef extends EdmBase |
||
| 31 | { |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string $name PropertyRef MUST define the Name attribute. The Name attribute refers to the name of a |
||
| 35 | * Property defined in the declaring EntityType. |
||
| 36 | */ |
||
| 37 | private $name; |
||
| 38 | |||
| 39 | public function __construct(string $name) |
||
| 40 | { |
||
| 41 | $this |
||
| 42 | ->setName($name); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Gets as name. |
||
| 47 | * |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function getName(): string |
||
| 51 | { |
||
| 52 | return $this->name; |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Sets a new name. |
||
| 57 | * |
||
| 58 | * @param string $name |
||
| 59 | * @return self |
||
| 60 | */ |
||
| 61 | public function setName(string $name): self |
||
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return string |
||
| 69 | */ |
||
| 70 | public function getDomName(): string |
||
| 71 | { |
||
| 72 | return 'PropertyRef'; |
||
| 73 | } |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return array|AttributeContainer[] |
||
| 77 | */ |
||
| 78 | public function getAttributes(): array |
||
| 82 | ]; |
||
| 83 | } |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @return array|DomBase[] |
||
| 87 | */ |
||
| 88 | public function getChildElements(): array |
||
| 91 | } |
||
| 92 | } |
||
| 93 |