public function __construct($name = null, $time = null, ActionableInterface $command = null) { // Set name, time, command if passed $name !== null && $this->name($name); $time !== null && $this->time($time); $command !== null && $this->command($command); // Copy description $this->description = $name; }