1 | <?php |
||
28 | final class CollectionContext implements CollectionContextInterface |
||
29 | { |
||
30 | /** @var Progress */ |
||
31 | private $progress; |
||
32 | |||
33 | /** |
||
34 | * CollectionContext constructor. |
||
35 | * @param Progress $progress |
||
36 | */ |
||
37 | 26 | public function __construct(Progress $progress) |
|
41 | |||
42 | /** |
||
43 | * Returns a Progress object that can indicate the current progress of the run. |
||
44 | * |
||
45 | * @return null|\Baleen\Migrations\Shared\Event\Progress |
||
46 | */ |
||
47 | 21 | public function getProgress() |
|
51 | |||
52 | /** |
||
53 | * Creates a new instance with an instance of Progress created with the specified parameters |
||
54 | * |
||
55 | * @param $total |
||
56 | * @param $current |
||
57 | * |
||
58 | * @return static |
||
59 | */ |
||
60 | 22 | public static function createWithProgress($total, $current) |
|
64 | } |
||
65 |