PHP Class Newscoop\Entity\AuthorType

Datei anzeigen Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property Type Description
$authors Doctrine\Common\Collections\ArrayCollection
$id integer
$type

Public Methods

Method Description
__construct ( string $type = null )
__toString ( ) : string
getId ( ) : integer Gets the value of id.
getType ( ) : string Get type field
setType ( $type ) Set type field

Method Details

__construct() public method

public __construct ( string $type = null )
$type string

__toString() public method

public __toString ( ) : string
return string

getId() public method

Gets the value of id.
public getId ( ) : integer
return integer

getType() public method

Get type field
public getType ( ) : string
return string The name of the type.

setType() public method

Set type field
public setType ( $type )

Property Details

$authors protected_oe property

protected ArrayCollection,Doctrine\Common\Collections $authors
return Doctrine\Common\Collections\ArrayCollection

$id protected_oe property

protected int $id
return integer

$type protected_oe property

protected $type