| 1 | <?php |
||
| 12 | final class RelationDefinition |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $type; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $target; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private $options = []; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var bool |
||
| 31 | */ |
||
| 32 | private $inverse = false; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param string $type |
||
| 36 | * @param string $target |
||
| 37 | * @param array $options |
||
| 38 | * @param bool $inverse |
||
| 39 | */ |
||
| 40 | public function __construct(string $type, string $target, array $options, bool $inverse = false) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function getType(): string |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getTarget(): string |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return array |
||
| 65 | */ |
||
| 66 | public function getOptions(): array |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return bool |
||
| 73 | */ |
||
| 74 | public function needInverse(): bool |
||
| 78 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.