| Total Complexity | 7 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 70.59% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class JoinColumnMetadata extends ColumnMetadata |
||
| 10 | { |
||
| 11 | /** @var string|null */ |
||
| 12 | protected $referencedColumnName; |
||
| 13 | |||
| 14 | /** @var string|null */ |
||
| 15 | protected $aliasedName; |
||
| 16 | |||
| 17 | /** @var bool */ |
||
| 18 | protected $nullable = true; |
||
| 19 | |||
| 20 | /** @var string */ |
||
| 21 | protected $onDelete = ''; |
||
| 22 | |||
| 23 | 1202 | public function getReferencedColumnName() : ?string |
|
| 24 | { |
||
| 25 | 1202 | return $this->referencedColumnName; |
|
| 26 | } |
||
| 27 | |||
| 28 | 276 | public function setReferencedColumnName(string $referencedColumnName) : void |
|
| 29 | { |
||
| 30 | 276 | $this->referencedColumnName = $referencedColumnName; |
|
| 31 | 276 | } |
|
| 32 | |||
| 33 | public function getAliasedName() : ?string |
||
| 34 | { |
||
| 35 | return $this->aliasedName; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function setAliasedName(string $aliasedName) : void |
||
| 39 | { |
||
| 40 | $this->aliasedName = $aliasedName; |
||
| 41 | } |
||
| 42 | |||
| 43 | 189 | public function getOnDelete() : string |
|
| 46 | } |
||
| 47 | |||
| 48 | 35 | public function setOnDelete(string $onDelete) : void |
|
| 49 | { |
||
| 50 | 35 | $this->onDelete = strtoupper($onDelete); |
|
| 51 | 35 | } |
|
| 52 | |||
| 53 | 23 | public function isOnDeleteCascade() : bool |
|
| 56 | } |
||
| 57 | } |
||
| 58 |