for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SmartWeb\ModuleTesting\Console;
/**
* Class CommandArgument
*
* @package SmartWeb\Testing\Console
*/
class CommandArgument implements CommandArgumentInterface
{
* @var string
protected $name;
* @var InputArgumentType
protected $type;
protected $description;
* CommandArgument constructor.
* @param string $name
* @param InputArgumentType $type
* @param string $description
public function __construct(string $name, InputArgumentType $type, string $description)
$this->name = $name;
$this->type = $type;
$this->description = $description;
}
* @return array
public function toArray()
return [
$this->name,
$this->type->value(),
$this->description,
];