BooleanToStringTransformer::reverseTransform()

mixed reverseTransform(mixed $value) Transforms a string into a Boolean. Parameters mixed $value The value in the transformed representation Return Value mixed The value in the original representation Exceptions TransformationFailedException If the given value is not a string.

BooleanToStringTransformer

class BooleanToStringTransformer implements DataTransformerInterface Transforms between a Boolean and a string. Methods __construct(string $trueValue) Sets the value emitted upon transform if the input is true. mixed transform(mixed $value) Transforms a Boolean into a string. mixed reverseTransform(mixed $value) Transforms a string into a Boolean. Details __construct(string $trueValue) Sets the value emitted upon transform if the inp

BooleanNodeDefinition

class BooleanNodeDefinition extends ScalarNodeDefinition This class provides a fluent interface for defining a node. Methods __construct(string $name, NodeParentInterface $parent = null) Constructor. NodeDefinition|$this setParent(NodeParentInterface $parent) Sets the parent node. from NodeDefinition NodeDefinition|$this info(string $info) Sets info message. from NodeDefinition NodeDefinition|$this example(string|array $example) Sets example configuration. from NodeDefiniti

BooleanNode

class BooleanNode extends ScalarNode This node represents a Boolean value in the config tree. Methods __construct(string $name, NodeInterface $parent = null) Constructor. from BaseNode setAttribute($key, $value) from BaseNode getAttribute($key, $default = null) from BaseNode hasAttribute($key) from BaseNode getAttributes() from BaseNode setAttributes(array $attributes) from BaseNode removeAttribute($key) from BaseNode setInfo(string $info) Sets an info m

BlankValidator

class BlankValidator extends ConstraintValidator Constants PRETTY_DATE Whether to format {@link \DateTime} objects as RFC-3339 dates ("Y-m-d H:i:s"). OBJECT_TO_STRING Whether to cast objects with a "__toString()" method to strings. Methods initialize(ExecutionContextInterface $context) Initializes the constraint validator. from ConstraintValidator validate(mixed $value, Constraint $constraint) Checks if the passed value is valid. Details initial

Blank

class Blank extends Constraint Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. NOT_BLANK_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from Constraint $message Methods static string

BlackHoleMetadataFactory::hasMetadataFor()

bool hasMetadataFor(mixed $value) Returns whether the class is able to return metadata for the given value. Parameters mixed $value Some value Return Value bool Whether metadata can be returned for that value

BlackHoleMetadataFactory::getMetadataFor()

MetadataInterface getMetadataFor(mixed $value) Returns the metadata for the given value. Parameters mixed $value Some value Return Value MetadataInterface The metadata for the value Exceptions NoSuchMetadataException If no metadata exists for the given value

BlackholeMetadataFactory deprecated

class BlackholeMetadataFactory extends BlackHoleMetadataFactory deprecated since version 2.5, to be removed in 3.0. Use {@link Factory\BlackHoleMetadataFactory} instead. Alias of {@link Factory\BlackHoleMetadataFactory}. Methods MetadataInterface getMetadataFor(mixed $value) Returns the metadata for the given value. from BlackHoleMetadataFactory bool hasMetadataFor(mixed $value) Returns whether the class is able to return metadata for the given value. from BlackHoleMetadataFacto

BlackHoleMetadataFactory

class BlackHoleMetadataFactory implements MetadataFactoryInterface Metadata factory that does not store metadata. This implementation is useful if you want to validate values against constraints only and you don't need to add constraints to classes and properties. Methods MetadataInterface getMetadataFor(mixed $value) Returns the metadata for the given value. bool hasMetadataFor(mixed $value) Returns whether the class is able to return metadata for the given value. Details