| 1 | <?php |
||
| 15 | final class ServiceMapping implements ServiceMappingInterface |
||
| 16 | { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The service-id of the service to load for given entitiy-field. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $serviceId; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Set this to true if this field should not be checked for the correct service on persist. |
||
| 27 | * This check is a safety-net and you should know what you are doing when you are disabling it. |
||
| 28 | * You have been warned. |
||
| 29 | * |
||
| 30 | * @var bool |
||
| 31 | */ |
||
| 32 | private $lax = false; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | private $origin; |
||
| 38 | |||
| 39 | 22 | public function __construct( |
|
| 48 | |||
| 49 | 5 | public function getServiceId(): string |
|
| 53 | |||
| 54 | 4 | public function isLax(): bool |
|
| 58 | |||
| 59 | 2 | public function describeOrigin(): string |
|
| 60 | { |
||
| 61 | 2 | return $this->origin; |
|
| 62 | } |
||
| 63 | |||
| 64 | 6 | public function collectDBALColumns(): array |
|
| 68 | |||
| 69 | } |
||
| 70 |