PHP Class Sulu\Bundle\ContactBundle\Entity\UrlType

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

Public Methods

Method Description
__construct ( ) Constructor.
addUrl ( Url $urls ) : UrlType Add urls.
getId ( ) : integer Get id.
getName ( ) : string Get name.
getUrls ( ) : Doctrine\Common\Collections\Collection Get urls.
jsonSerialize ( ) : mixed (PHP 5 >= 5.4.0)
Specify data which should be serialized to JSON.
removeUrl ( Url $urls ) Remove urls.
setId ( integer $id ) To force id = 1 in load fixtures.
setName ( string $name ) : UrlType Set name.

Method Details

__construct() public method

Constructor.
public __construct ( )

addUrl() public method

Add urls.
public addUrl ( Url $urls ) : UrlType
$urls Url
return UrlType

getId() public method

Get id.
public getId ( ) : integer
return integer

getName() public method

Get name.
public getName ( ) : string
return string

getUrls() public method

Get urls.
public getUrls ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

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

removeUrl() public method

Remove urls.
public removeUrl ( Url $urls )
$urls Url

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 ) : UrlType
$name string
return UrlType