PHP Class Sulu\Bundle\ContactBundle\Entity\Position

Inheritance: implements JsonSerializabl\JsonSerializable
Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
getId ( ) : integer Get id.
getPosition ( ) : string Get position.
jsonSerialize ( ) : mixed (PHP 5 >= 5.4.0)
Specify data which should be serialized to JSON.
setPosition ( string $position ) : Position Set position.

Method Details

getId() public method

Get id.
public getId ( ) : integer
return integer

getPosition() public method

Get position.
public getPosition ( ) : string
return string

jsonSerialize() public method

(PHP 5 >= 5.4.0)
Specify data which should be serialized to JSON.
public jsonSerialize ( ) : mixed
return mixed data which can be serialized by json_encode, which is a value of any type other than a resource

setPosition() public method

Set position.
public setPosition ( string $position ) : Position
$position string
return Position