Beta version

abstract class AbstractDateTimedPositioned extends AbstractDateTimed

Combined AbstractDateTimed and PositionedTrait.

Traits

Trait which describe a positioned entity

Methods

int
getId()

Get entity unique identifier.

setId(int $id)

No description

getCreatedAt()

No description

$this
setCreatedAt(DateTime $createdAt)

No description

getUpdatedAt()

No description

$this
setUpdatedAt(DateTime $updatedAt)

No description

preUpdate()

No description

prePersist()

No description

$this
resetDates()

Set creation and update date to now.

float
getPosition()

No description

$this
setPosition(float $newPosition)

Set position as a float to enable increment and decrement by O.5 to insert a node between two others.

Details

in AbstractEntity at line 51
int getId()

Get entity unique identifier.

Return Value

int

in AbstractEntity at line 60
AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

in AbstractDateTimed at line 53
DateTime getCreatedAt()

Return Value

DateTime

in AbstractDateTimed at line 63
$this setCreatedAt(DateTime $createdAt)

Parameters

DateTime $createdAt

Return Value

$this

in AbstractDateTimed at line 78
DateTime getUpdatedAt()

Return Value

DateTime

in AbstractDateTimed at line 88
$this setUpdatedAt(DateTime $updatedAt)

Parameters

DateTime $updatedAt

Return Value

$this

in AbstractDateTimed at line 98
preUpdate()

in AbstractDateTimed at line 105
prePersist()

in AbstractDateTimed at line 115
$this resetDates()

Set creation and update date to now.

Return Value

$this

in PositionedTrait at line 45
float getPosition()

Return Value

float

in PositionedTrait at line 58
$this setPosition(float $newPosition)

Set position as a float to enable increment and decrement by O.5 to insert a node between two others.

Parameters

float $newPosition

Return Value

$this