The string data type.
The plain value of a string is a regular PHP string. For setting the value any PHP variable that casts to a string may be passed.
Expanded class hierarchy of String
class String extends TypedData implements TypedDataInterface {
/**
* The data value.
*
* @var string
*/
protected $value;
/**
* Implements TypedDataInterface::setValue().
*/
public function setValue($value) {
$this->value = isset($value) ? (string) $value : $value;
}
/**
* Implements TypedDataInterface::validate().
*/
public function validate() {
// TODO: Implement validate() method.
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
String:: |
protected | property | The data value. | |
String:: |
public | function |
Implements TypedDataInterface::setValue(). Overrides TypedData:: |
1 |
String:: |
public | function |
Implements TypedDataInterface::validate(). Overrides TypedDataInterface:: |
|
TypedData:: |
protected | property | The data definition. | |
TypedData:: |
public | function |
Implements TypedDataInterface::getDefinition(). Overrides TypedDataInterface:: |
|
TypedData:: |
public | function |
Implements TypedDataInterface::getString(). Overrides TypedDataInterface:: |
8 |
TypedData:: |
public | function |
Implements TypedDataInterface::getType(). Overrides TypedDataInterface:: |
|
TypedData:: |
public | function |
Implements TypedDataInterface::getValue(). Overrides TypedDataInterface:: |
7 |
TypedData:: |
public | function | Constructs a TypedData object given its definition. | 3 |