monitoring: Fix PHPDoc in DeleteDowntimesCommandForm

This commit is contained in:
Eric Lippmann 2015-07-28 13:32:24 +02:00
parent 72c3337be8
commit 5d01dca291

View File

@ -18,10 +18,9 @@ class DeleteDowntimesCommandForm extends CommandForm
* @var array * @var array
*/ */
protected $downtimes; protected $downtimes;
/** /**
* (non-PHPDoc) * {@inheritdoc}
* @see \Zend_Form::init() For the method documentation.
*/ */
public function init() public function init()
{ {
@ -29,8 +28,7 @@ class DeleteDowntimesCommandForm extends CommandForm
} }
/** /**
* (non-PHPDoc) * {@inheritdoc}
* @see \Icinga\Web\Form::createElements() For the method documentation.
*/ */
public function createElements(array $formData = array()) public function createElements(array $formData = array())
{ {
@ -43,19 +41,17 @@ class DeleteDowntimesCommandForm extends CommandForm
)); ));
return $this; return $this;
} }
/** /**
* (non-PHPDoc) * {@inheritdoc}
* @see \Icinga\Web\Form::getSubmitLabel() For the method documentation.
*/ */
public function getSubmitLabel() public function getSubmitLabel()
{ {
return $this->translatePlural('Remove', 'Remove All', count($this->downtimes)); return $this->translatePlural('Remove', 'Remove All', count($this->downtimes));
} }
/** /**
* (non-PHPDoc) * {@inheritdoc}
* @see \Icinga\Web\Form::onSuccess() For the method documentation.
*/ */
public function onSuccess() public function onSuccess()
{ {
@ -72,13 +68,13 @@ class DeleteDowntimesCommandForm extends CommandForm
Notification::success($this->translate('Deleting downtime.')); Notification::success($this->translate('Deleting downtime.'));
return true; return true;
} }
/** /**
* Set the downtimes to be deleted upon success * Set the downtimes to be deleted upon success
* *
* @param type $downtimes * @param array $downtimes
* *
* @return $this * @return $this
*/ */
public function setDowntimes(array $downtimes) public function setDowntimes(array $downtimes)
{ {