PHP Class Sulu\Component\Content\Compat\PropertyParameter

Inheritance: implements JsonSerializable
Show file Open project: sulu/sulu

Public Methods

Method Description
__construct ( string $name, string | boolean | array $value, string | null $type = null, array $metadata = [] ) Constructor.
__toString ( )
getInfoText ( string $languageCode ) : string Returns infoText of property param.
getName ( ) : string Returns name of property param.
getPlaceholder ( string $languageCode ) : string Returns placeholder of property param.
getTitle ( string $languageCode ) : string Returns title of property param.
getType ( ) : string Returns type of property param.
getValue ( ) : array | boolean | string Returns value of property param.
hasTitle ( string $languageCode ) : boolean Returns TRUE if parameter has a localized title the given language.
jsonSerialize ( )

Method Details

__construct() public method

Constructor.
public __construct ( string $name, string | boolean | array $value, string | null $type = null, array $metadata = [] )
$name string
$value string | boolean | array
$type string | null
$metadata array

__toString() public method

public __toString ( )

getInfoText() public method

Returns infoText of property param.
public getInfoText ( string $languageCode ) : string
$languageCode string
return string

getName() public method

Returns name of property param.
public getName ( ) : string
return string

getPlaceholder() public method

Returns placeholder of property param.
public getPlaceholder ( string $languageCode ) : string
$languageCode string
return string

getTitle() public method

Returns title of property param.
public getTitle ( string $languageCode ) : string
$languageCode string
return string

getType() public method

Returns type of property param.
public getType ( ) : string
return string

getValue() public method

Returns value of property param.
public getValue ( ) : array | boolean | string
return array | boolean | string

hasTitle() public method

Returns TRUE if parameter has a localized title the given language.
public hasTitle ( string $languageCode ) : boolean
$languageCode string
return boolean

jsonSerialize() public method

public jsonSerialize ( )