| 1 | <?php |
||
| 23 | class MultiConnectorContainer implements MultiConnectorContainerInterface |
||
| 24 | { |
||
| 25 | /** @var array */ |
||
| 26 | private $connectors = []; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * MultiConnectorInterface constructor. |
||
| 30 | * |
||
| 31 | * @param ConnectorInterface[] ...$connectorInterfaces |
||
| 32 | */ |
||
| 33 | 2 | public function __construct(ConnectorInterface ...$connectorInterfaces) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Returns a Connector instance by name. |
||
| 43 | * |
||
| 44 | * @param string $name |
||
| 45 | * @throws InvalidArgumentException |
||
| 46 | * @return ConnectorInterface |
||
| 47 | */ |
||
| 48 | 1 | public function getConnectorByName(string $name) : ConnectorInterface |
|
| 59 | } |
||
| 60 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.