PHP Class Ojs\JournalBundle\Entity\PersonTitle

Inheritance: extends Prezent\Doctrine\Translatable\Entity\AbstractTranslatable, use trait Ojs\CoreBundle\Entity\GenericEntityTrait
Mostrar archivo Open project: ojs/ojs Class Usage Examples

Protected Properties

Property Type Description
$id integer
$translations

Public Methods

Method Description
__construct ( ) Constructor
__toString ( ) : string
getId ( ) : integer Get id
getTitle ( ) : string Get title
getTitleTranslations ( ) : string Get title translations
setTitle ( string $title ) : PersonTitle Set title
translate ( null $locale = null ) : mixed | null | Ojs\JournalBundle\Entity\PersonTitleTranslation Translation helper method

Method Details

__construct() public method

Constructor
public __construct ( )

__toString() public method

public __toString ( ) : string
return string

getId() public method

Get id
public getId ( ) : integer
return integer

getTitle() public method

Get title
public getTitle ( ) : string
return string

getTitleTranslations() public method

Get title translations
public getTitleTranslations ( ) : string
return string

setTitle() public method

Set title
public setTitle ( string $title ) : PersonTitle
$title string
return PersonTitle

translate() public method

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

Property Details

$id protected_oe property

protected int $id
return integer

$translations protected_oe property

protected $translations