PHP Class Sulu\Bundle\ResourceBundle\Api\OperatorValue

Inheritance: extends Sulu\Component\Rest\ApiWrapper
Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__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.

Private Methods

Method Description
getTranslation ( ) : OperatorValueTranslation Get translation by locale.

Method Details

__construct() public method

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

addTranslation() public method

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

getId() public method

Get id.
public getId ( ) : integer
return integer

getName() public method

Returns the name of the operator value.
public getName ( ) : string
return string The name of the operator

getOperator() public method

Get operator.
public getOperator ( ) : Operator
return Sulu\Bundle\ResourceBundle\Entity\Operator

getTranslations() public method

Get translations.
public getTranslations ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getValue() public method

Get value.
public getValue ( ) : string
return string

removeTranslation() public method

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

setName() public method

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

setOperator() public method

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

setValue() public method

Set value.
public setValue ( string $value ) : OperatorValue
$value string
return OperatorValue