| Total Complexity | 1 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class RelationMapper |
||
| 10 | { |
||
| 11 | const RELATIONS = [ |
||
| 12 | Relation::HAS_ONE => 'has_one', |
||
| 13 | Relation::HAS_MANY => 'has_many', |
||
| 14 | Relation::BELONGS_TO => 'belongs_to', |
||
| 15 | Relation::MANY_TO_MANY => 'many_to_many', |
||
| 16 | Relation::REFERS_TO => 'refers_to', |
||
| 17 | Relation::MORPHED_HAS_MANY => 'morphed_has_many', |
||
| 18 | Relation::MORPHED_HAS_ONE => 'morphed_has_one', |
||
| 19 | Relation::BELONGS_TO_MORPHED => 'belongs_to_morphed', |
||
| 20 | ]; |
||
| 21 | |||
| 22 | public function map(int $code): string |
||
| 27 |