PHP Class Ojs\JournalBundle\Entity\ContactTypes

Inheritance: extends Prezent\Doctrine\Translatable\Entity\AbstractTranslatable, implements Ojs\ApiBundle\Model\ContactTypesInterface, 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 ( ) Constructor
__toString ( ) : string
getDescription ( ) : string Get description
getDescriptionTranslations ( ) : string Get description translations
getId ( ) : integer Get id
getName ( ) : string Get name
getNameTranslations ( ) : string Get name translations
setCreated ( DateTime $created ) : ContactTypes Set created
setDescription ( string $description ) Set description
setName ( string $name ) Set name
setUpdated ( DateTime $updated ) : ContactTypes Set updated
translate ( null $locale = null ) : mixed | null | Ojs\JournalBundle\Entity\ContactTypesTranslation Translation helper method

Method Details

__construct() public method

Constructor
public __construct ( )

__toString() public method

public __toString ( ) : string
return string

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

setCreated() public method

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

setDescription() public method

Set description
public setDescription ( string $description )
$description string

setName() public method

Set name
public setName ( string $name )
$name string

setUpdated() public method

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

translate() public method

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

Property Details

$id protected_oe property

protected int $id
return integer

$translations protected_oe property

protected $translations