1 | <?php |
||
25 | final class DesignCreatorCommand extends Command |
||
26 | { |
||
27 | /** @var string */ |
||
28 | protected $name = 'couchbase:create-design'; |
||
29 | |||
30 | /** @var string */ |
||
31 | protected $description = 'Inserts design document and fails if it is exist already.'; |
||
32 | |||
33 | /** @var DatabaseManager */ |
||
34 | private $databaseManager; |
||
35 | |||
36 | /** @var string */ |
||
37 | private $defaultDatabase = 'couchbase'; |
||
38 | |||
39 | /** @var array<string, string> */ |
||
40 | private $config = []; |
||
41 | |||
42 | /** |
||
43 | * DesignCreatorCommand constructor. |
||
44 | * |
||
45 | * @param DatabaseManager $databaseManager |
||
46 | * @param array $config |
||
47 | */ |
||
48 | 4 | public function __construct(DatabaseManager $databaseManager, array $config = []) |
|
54 | |||
55 | /** |
||
56 | * @return string[] |
||
57 | */ |
||
58 | 4 | protected function getArguments() |
|
64 | |||
65 | /** |
||
66 | * Get the console command options. |
||
67 | * |
||
68 | * @return array |
||
69 | */ |
||
70 | 4 | protected function getOptions() |
|
76 | |||
77 | /** |
||
78 | * Execute the console command |
||
79 | */ |
||
80 | 4 | public function handle() |
|
95 | } |
||
96 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.