protected function _actionAddsubscriber(AnCommandContext $context)
    {
        if ($subscription = $this->_subscriber->subscribeTo($this->getItem())) {
            $subscription->endDate = $context->data->endDate;
        }
    }
protected function _actionAddsubscriber(AnCommandContext $context)
    {
        if ($subscription = $this->_subscriber->subscribeTo($this->getItem())) {
            $subscription->endDate = $context->data->endDate;
        }
    }
protected function _actionAddsubscriber ( AnCommandContext $ context ) { if ( $ subscription = $ this -> _subscriber -> subscribeTo ( $ this -> getItem ( ) ) ) { $ subscription -> endDate = $ context -> data -> endDate ; } }
Add a subscriber.

@param AnCommandContext $context
Add a subscriber .