PHP Class Sulu\Bundle\ContactBundle\Entity\FaxType

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

Public Methods

Method Description
__construct ( ) Constructor.
addFax ( Fax $faxes ) : FaxType Add faxes.
addFaxe ( Fax $faxes ) : FaxType Add faxes.
getFaxes ( ) : Doctrine\Common\Collections\Collection Get faxes.
getId ( ) : integer Get id.
getName ( ) : string Get name.
jsonSerialize ( ) : mixed (PHP 5 >= 5.4.0)
Specify data which should be serialized to JSON.
removeFax ( Fax $faxes ) Remove faxes.
removeFaxe ( Fax $faxes ) Remove faxes.
setId ( integer $id ) To force id = 1 in load fixtures.
setName ( string $name ) : FaxType Set name.

Method Details

__construct() public method

Constructor.
public __construct ( )

addFax() public method

Add faxes.
public addFax ( Fax $faxes ) : FaxType
$faxes Fax
return FaxType

addFaxe() public method

Add faxes.
public addFaxe ( Fax $faxes ) : FaxType
$faxes Fax
return FaxType

getFaxes() public method

Get faxes.
public getFaxes ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getId() public method

Get id.
public getId ( ) : integer
return integer

getName() public method

Get name.
public getName ( ) : 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

removeFax() public method

Remove faxes.
public removeFax ( Fax $faxes )
$faxes Fax

removeFaxe() public method

Remove faxes.
public removeFaxe ( Fax $faxes )
$faxes Fax

setId() public method

To force id = 1 in load fixtures.
public setId ( integer $id )
$id integer

setName() public method

Set name.
public setName ( string $name ) : FaxType
$name string
return FaxType