mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
upgrade and refactor personhistoryFile
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user