upgrade and refactor personhistoryFile

This commit is contained in:
2014-11-07 23:48:26 +01:00
parent 29af313582
commit e5f67e32c3
15 changed files with 365 additions and 288 deletions

View File

@@ -25,11 +25,6 @@ class PersonHistoryFile
*/
private $date_closing;
/**
* @var string
*/
private $motive = '';
/**
* @var string
*/
@@ -40,6 +35,12 @@ class PersonHistoryFile
*/
private $person;
/**
*
* @var AccompanyingPeriod\ClosingMotive
*/
private $closingMotive = null;
/**
*
* @param \DateTime $dateOpening
@@ -121,29 +122,6 @@ class PersonHistoryFile
}
}
/**
* Set motive
*
* @param string $motive
* @return PersonHistoryFile
*/
public function setMotive($motive)
{
$this->motive = $motive;
return $this;
}
/**
* Get motive
*
* @return string
*/
public function getMotive()
{
return $this->motive;
}
/**
* Set memo
*
@@ -197,6 +175,18 @@ class PersonHistoryFile
return $this->person;
}
public function getClosingMotive()
{
return $this->closingMotive;
}
public function setClosingMotive(AccompanyingPeriod\ClosingMotive $closingMotive)
{
$this->closingMotive = $closingMotive;
return $this;
}
/// VALIDATION function