PHP Класс Sulu\Bundle\ResourceBundle\Api\OperatorValue

Наследование: extends Sulu\Component\Rest\ApiWrapper
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( OperatorValue $entity, string $locale )
addTranslation ( OperatorValueTranslation $translations ) Add translations.
getId ( ) : integer Get id.
getName ( ) : string Returns the name of the operator value.
getOperator ( ) : Operator Get operator.
getTranslations ( ) : Doctrine\Common\Collections\Collection Get translations.
getValue ( ) : string Get value.
removeTranslation ( OperatorValueTranslation $translations ) Remove translations.
setName ( string $name ) Sets the name of the operator value.
setOperator ( Operator $operator ) Set operator.
setValue ( string $value ) : OperatorValue Set value.

Приватные методы

Метод Описание
getTranslation ( ) : OperatorValueTranslation Get translation by locale.

Описание методов

__construct() публичный метод

public __construct ( OperatorValue $entity, string $locale )
$entity Sulu\Bundle\ResourceBundle\Entity\OperatorValue
$locale string

addTranslation() публичный метод

Add translations.
public addTranslation ( OperatorValueTranslation $translations )
$translations Sulu\Bundle\ResourceBundle\Entity\OperatorValueTranslation

getId() публичный метод

Get id.
public getId ( ) : integer
Результат integer

getName() публичный метод

Returns the name of the operator value.
public getName ( ) : string
Результат string The name of the operator

getOperator() публичный метод

Get operator.
public getOperator ( ) : Operator
Результат Sulu\Bundle\ResourceBundle\Entity\Operator

getTranslations() публичный метод

Get translations.
public getTranslations ( ) : Doctrine\Common\Collections\Collection
Результат Doctrine\Common\Collections\Collection

getValue() публичный метод

Get value.
public getValue ( ) : string
Результат string

removeTranslation() публичный метод

Remove translations.
public removeTranslation ( OperatorValueTranslation $translations )
$translations Sulu\Bundle\ResourceBundle\Entity\OperatorValueTranslation

setName() публичный метод

Sets the name of the operator value.
public setName ( string $name )
$name string The name of the operator value

setOperator() публичный метод

Set operator.
public setOperator ( Operator $operator )
$operator Operator

setValue() публичный метод

Set value.
public setValue ( string $value ) : OperatorValue
$value string
Результат OperatorValue