Add getter and setter for caceled

This commit is contained in:
Dirk Koritnik 2021-03-11 17:39:15 +01:00 committed by Daniel Siepmann
parent ce723b01bc
commit 4a8abbe344

View file

@ -21,9 +21,9 @@ class Date extends AbstractEntity
protected $end = null;
/**
* @var bool
* @var string
*/
protected $canceled = false;
protected $canceled = "no";
/**
* @var \Wrm\Events\Domain\Model\Event
@ -69,10 +69,7 @@ class Date extends AbstractEntity
$this->end = $end;
}
public function isCanceled(): bool
{
return $this->canceled;
}
/**
* @return Event
@ -107,4 +104,21 @@ class Date extends AbstractEntity
{
return $this->_languageUid;
}
/**
* @return string
*/
public function getCanceled(): string
{
return $this->canceled;
}
/**
* @param string $canceled
* @return void
*/
public function setCanceled(string $canceled)
{
$this->canceled = $canceled;
}
}