\Chill\PersonBundle\EntityAccompanyingPeriod

AccompanyingPeriod

Summary

Methods
Properties
Constants
__construct()
getId()
setDateOpening()
getDateOpening()
setDateClosing()
getDateClosing()
isOpen()
setMemo()
getMemo()
setPerson()
getPerson()
getClosingMotive()
setClosingMotive()
isDateConsistent()
isClosingAfterOpening()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$id
$date_opening
$date_closing
$memo
$person
$closingMotive
N/A

Properties

$id

$id : integer

Type

integer

$date_opening

$date_opening : \DateTime

Type

\DateTime

$date_closing

$date_closing : \DateTime

Type

\DateTime

$memo

$memo : string

Type

string

Methods

__construct()

__construct(\DateTime  $dateOpening) 

Parameters

\DateTime $dateOpening

getId()

getId() : integer

Get id

Returns

integer

getDateOpening()

getDateOpening() : \DateTime

Get date_opening

Returns

\DateTime

setDateClosing()

setDateClosing(\DateTime  $dateClosing) : \Chill\PersonBundle\Entity\AccompanyingPeriod

Set date_closing

For closing a Person file, you should use Person::setClosed instead.

Parameters

\DateTime $dateClosing

Returns

\Chill\PersonBundle\Entity\AccompanyingPeriod

getDateClosing()

getDateClosing() : \DateTime

Get date_closing

Returns

\DateTime

isOpen()

isOpen() : boolean

Returns

boolean

getMemo()

getMemo() : string

Get memo

Returns

string

getClosingMotive()

getClosingMotive() 

isDateConsistent()

isDateConsistent(\Symfony\Component\Validator\ExecutionContextInterface  $context) 

Parameters

\Symfony\Component\Validator\ExecutionContextInterface $context

isClosingAfterOpening()

isClosingAfterOpening() : boolean

Returns true if the closing date is after the opening date.

Returns

boolean