| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | namespace LaravelUi5\OData\Edm; |
| 6: | |
| 7: | use LaravelUi5\OData\Edm\Contracts\EntitySetPathInterface; |
| 8: | |
| 9: | final readonly class EntitySetPath implements EntitySetPathInterface |
| 10: | { |
| 11: | public function __construct( |
| 12: | private string $bindingParameterName, |
| 13: | private string $navigationPropertyName, |
| 14: | ) {} |
| 15: | |
| 16: | public function getBindingParameterName(): string |
| 17: | { |
| 18: | return $this->bindingParameterName; |
| 19: | } |
| 20: | |
| 21: | public function getNavigationPropertyName(): string |
| 22: | { |
| 23: | return $this->navigationPropertyName; |
| 24: | } |
| 25: | |
| 26: | public function __toString(): string |
| 27: | { |
| 28: | return $this->bindingParameterName . '/' . $this->navigationPropertyName; |
| 29: | } |
| 30: | } |
| 31: | |