Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
Plugged notice given date into power of attorney
Browse files Browse the repository at this point in the history
  • Loading branch information
brettminnie committed Nov 27, 2014
1 parent 6fdf2bb commit 07e8759
Showing 1 changed file with 5 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Opg\Common\Model\Entity\Traits\ToArray;
use Opg\Core\Model\Entity\CaseActor\Decorators\NoticeGivenDate;
use Opg\Core\Model\Entity\CaseActor\Interfaces\HasNoticeGivenDate;
use Opg\Core\Model\Entity\CaseItem\CaseItem;
use Opg\Core\Model\Entity\CaseActor\AttorneyAbstract;
use Opg\Core\Model\Entity\CaseActor\CertificateProvider;
Expand All @@ -28,9 +30,11 @@
*
* @ORM\Entity
*/
abstract class PowerOfAttorney extends CaseItem
abstract class PowerOfAttorney extends CaseItem implements HasNoticeGivenDate
{
use DonorCannotSignForm;
use NoticeGivenDate;

/**
* Constant for the I portion of I/We questions
*/
Expand Down Expand Up @@ -404,15 +408,6 @@ abstract class PowerOfAttorney extends CaseItem
*/
protected $dispatchDate;

/**
* @ORM\Column(type="date", nullable=true)
* @var \DateTime
* @Type("string")
* @GenericAccessor(getter="getDateAsString",setter="getDateAsString", propertyName="noticeGivenDate")
* @Groups({"api-person-get"})
*/
protected $noticeGivenDate;

/**
* @ORM\Column(type="string", nullable=true)
* @var string
Expand Down Expand Up @@ -1535,29 +1530,6 @@ public function getDispatchDate()
return $this->dispatchDate;
}

/**
* @param \DateTime $noticeGivenDate
*
* @return PowerOfAttorney
*/
public function setNoticeGivenDate(\DateTime $noticeGivenDate = null)
{
if (is_null($noticeGivenDate)) {
$noticeGivenDate = new \DateTime();
}
$this->noticeGivenDate = $noticeGivenDate;

return $this;
}

/**
* @return string
*/
public function getNoticeGivenDate()
{
return $this->noticeGivenDate;
}

/**
* @param \DateTime $notificationDate
*
Expand Down

0 comments on commit 07e8759

Please sign in to comment.