| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class AssociationPathBuilder |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var AssociateCallTuple[] |
||
| 12 | */ |
||
| 13 | protected $associateCallTuple = []; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param string $relationshipName |
||
| 17 | * |
||
| 18 | * @return AssociationBuilder |
||
| 19 | */ |
||
| 20 | public function associate(string $relationshipName): AssociationBuilder |
||
| 21 | { |
||
| 22 | $this->associateCallTuple[] |
||
| 23 | = new AssociateCallTuple( |
||
| 24 | $relationshipName, |
||
| 25 | $associationBuilder = new AssociationBuilder($this) |
||
| 26 | ); |
||
| 27 | |||
| 28 | return $associationBuilder; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return AssociationPath |
||
| 33 | */ |
||
| 34 | public function create(): AssociationPath |
||
| 49 | } |
||
| 50 | } |
||
| 51 |