1 | <?php |
||
33 | final class CollectionRunnerFactory implements CollectionRunnerFactoryInterface |
||
34 | { |
||
35 | use HasInternalPublisherTrait; |
||
36 | |||
37 | /** @var MigrationRunnerInterface */ |
||
38 | private $migrationRunner; |
||
39 | |||
40 | /** |
||
41 | * CollectionRunnerFactory constructor. |
||
42 | * @param PublisherInterface $publisher |
||
|
|||
43 | * @param MigrationRunnerInterface $migrationRunner |
||
44 | */ |
||
45 | 3 | public function __construct(PublisherInterface $publisher = null, MigrationRunnerInterface $migrationRunner = null) |
|
46 | { |
||
47 | 3 | $this->setPublisher($publisher); |
|
48 | 3 | $this->migrationRunner = $migrationRunner; |
|
49 | 3 | } |
|
50 | |||
51 | /** |
||
52 | * Creates a CollectionRunner for the specified collection |
||
53 | * |
||
54 | * @param CollectionInterface $collection |
||
55 | * @return RunnerInterface |
||
56 | */ |
||
57 | 1 | public function create(CollectionInterface $collection) |
|
61 | } |
||
62 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.