* @throws InvalidArgumentException Thrown if default command is not set
* @throws InvalidCommandException Thrown if default command is invalid
*/
- public static final function createImageCommandResolver ($commandName) {
+ public static final function createImageCommandResolver (string $commandName) {
// Create the new instance
$resolverInstance = new ImageCommandResolver();
// Then thrown an exception here
throw new InvalidArgumentException('Parameter "commandName" is empty');
} elseif ($resolverInstance->isCommandValid($commandName) === false) {
+ // @TODO Missing namespace!
// Invalid command found
throw new InvalidCommandException(array($resolverInstance, $commandName), self::EXCEPTION_INVALID_COMMAND);
}