PHP Class Sulu\Bundle\ResourceBundle\Api\Operator

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

Public Methods

Method Description
__construct ( Operator $entity, string $locale )
addTranslation ( OperatorTranslation $translations ) Add translations.
addValue ( OperatorValue $value ) Add values.
getId ( ) : integer Get id.
getInputType ( ) : string Get inputType.
getName ( ) : string Returns the name of the operator.
getOperator ( ) : string Get operator.
getTranslations ( ) : Doctrine\Common\Collections\Collection Get translations.
getType ( ) : integer Get type.
getValues ( ) : Doctrine\Common\Collections\Collection Get values.
removeTranslation ( OperatorTranslation $translations ) Remove translations.
removeValue ( OperatorValue $value ) Remove values.
setInputType ( integer $inputType ) Set inputType.
setName ( string $name ) Sets the name of the operator.
setOperator ( string $operator ) Set operator.
setType ( string $type ) Set type.

Private Methods

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

Method Details

__construct() public method

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

addTranslation() public method

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

addValue() public method

Add values.
public addValue ( OperatorValue $value )
$value OperatorValue

getId() public method

Get id.
public getId ( ) : integer
return integer

getInputType() public method

Get inputType.
public getInputType ( ) : string
return string

getName() public method

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

getOperator() public method

Get operator.
public getOperator ( ) : string
return string

getTranslations() public method

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

getType() public method

Get type.
public getType ( ) : integer
return integer

getValues() public method

Get values.
public getValues ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

removeTranslation() public method

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

removeValue() public method

Remove values.
public removeValue ( OperatorValue $value )
$value OperatorValue

setInputType() public method

Set inputType.
public setInputType ( integer $inputType )
$inputType integer

setName() public method

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

setOperator() public method

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

setType() public method

Set type.
public setType ( string $type )
$type string