1 | <?php namespace AdamWathan\Faktory\Relationship; |
||
3 | class HasMany extends DependentRelationship |
||
4 | { |
||
5 | protected $quantity; |
||
6 | |||
7 | public function __construct($related_model, $factoryLoader, $quantity, $foreign_key = null, $attributes = []) |
||
12 | |||
13 | public function build() |
||
17 | |||
18 | protected function createRelated() |
||
22 | |||
23 | public function quantity($quantity) |
||
28 | } |
||
29 |