| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class EdmPathExpression extends EdmElement implements IPathExpression |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string[] |
||
| 20 | */ |
||
| 21 | private $path; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * EdmPathExpression constructor. |
||
| 25 | * @param string[] ...$path Path string containing segments seperated by '/'. For example: "A.B/C/D.E/Func1(NS.T,NS.T2)/P1". OR Path segments array |
||
| 26 | */ |
||
| 27 | public function __construct(string ...$path) |
||
| 28 | { |
||
| 29 | if(count($path) === 1){ |
||
| 30 | $path = explode('/', $path[]); |
||
| 31 | } |
||
| 32 | $this->path = $path; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritDoc |
||
| 37 | */ |
||
| 38 | public function getExpressionKind(): ExpressionKind |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @inheritDoc |
||
| 45 | */ |
||
| 46 | public function getPath(): array |
||
| 49 | } |
||
| 50 | } |