PHP Class Ojs\JournalBundle\Entity\PublisherTypes

Inheritance: extends Prezent\Doctrine\Translatable\Entity\AbstractTranslatable, use trait Ojs\CoreBundle\Entity\GenericEntityTrait
显示文件 Open project: ojs/ojs Class Usage Examples

Protected Properties

Property Type Description
$id integer
$translations

Public Methods

Method Description
__construct ( )
__toString ( ) : string
addPublisher ( Publisher $publisher )
getDescription ( ) : string Get description
getDescriptionTranslations ( ) : string Get description translations
getId ( ) : integer Get id
getName ( ) : string Get name
getNameTranslations ( ) : string Get name translations
getPublishers ( ) : ArrayCollection
getSlug ( ) : string
removePublisher ( Publisher $publisher )
setCreated ( DateTime $created ) : PublisherTypes Set created
setDescription ( string $description ) : PublisherTypes Set description
setName ( string $name ) : PublisherTypes Set name
setSlug ( mixed $slug )
setUpdated ( DateTime $updated ) : PublisherTypes Set updated
translate ( null $locale = null ) : mixed | null | Ojs\JournalBundle\Entity\PublisherTypesTranslation Translation helper method

Method Details

__construct() public method

public __construct ( )

__toString() public method

public __toString ( ) : string
return string

addPublisher() public method

public addPublisher ( Publisher $publisher )
$publisher Publisher

getDescription() public method

Get description
public getDescription ( ) : string
return string

getDescriptionTranslations() public method

Get description translations

getId() public method

Get id
public getId ( ) : integer
return integer

getName() public method

Get name
public getName ( ) : string
return string

getNameTranslations() public method

Get name translations
public getNameTranslations ( ) : string
return string

getPublishers() public method

public getPublishers ( ) : ArrayCollection
return Doctrine\Common\Collections\ArrayCollection

getSlug() public method

public getSlug ( ) : string
return string

removePublisher() public method

public removePublisher ( Publisher $publisher )
$publisher Publisher

setCreated() public method

Set created
public setCreated ( DateTime $created ) : PublisherTypes
$created DateTime
return PublisherTypes

setDescription() public method

Set description
public setDescription ( string $description ) : PublisherTypes
$description string
return PublisherTypes

setName() public method

Set name
public setName ( string $name ) : PublisherTypes
$name string
return PublisherTypes

setSlug() public method

public setSlug ( mixed $slug )
$slug mixed

setUpdated() public method

Set updated
public setUpdated ( DateTime $updated ) : PublisherTypes
$updated DateTime
return PublisherTypes

translate() public method

Translation helper method
public translate ( null $locale = null ) : mixed | null | Ojs\JournalBundle\Entity\PublisherTypesTranslation
$locale null
return mixed | null | Ojs\JournalBundle\Entity\PublisherTypesTranslation

Property Details

$id protected_oe property

protected int $id
return integer

$translations protected_oe property

protected $translations