1 | <?php namespace AdamWathan\Faktory\Strategy; |
||
3 | abstract class Strategy |
||
4 | { |
||
5 | protected $model; |
||
6 | protected $sequence; |
||
7 | protected $attributes; |
||
8 | |||
9 | public function __construct($model, $sequence) |
||
14 | |||
15 | public static function make($model, $sequence) |
||
19 | |||
20 | public function attributes($attributes) |
||
24 | |||
25 | protected function newModel() |
||
29 | |||
30 | protected function setAttribute($attribute, $value) |
||
34 | |||
35 | protected function unsetAttribute($attribute) |
||
39 | |||
40 | public function __get($key) |
||
44 | |||
45 | protected function getAttributeValue($value) |
||
52 | |||
53 | abstract public function newInstance(); |
||
54 | } |
||
55 |