public function __construct($action, Context $context = null) { $this->action = (string) $action; $this->context = $context; }