laracasts/Commander — pull request #32 by salebab (2014-08-26 21:03:37+00:00)
Title: Type hinting in Command's constructor (value object mapping)

It would be useful to use a value objects in command, so if you type hint property, mapper will instantiate and pass object.

```
class RegisterCommand {

/**
* @var EmailAddress
*/
private $email;

private $password;

public function __construct(EmailAddress $email, $password)
{
$this->email = $email;
$this->password = $password;
}
}
```