JsonDescriptor

class JsonDescriptor extends Descriptor Methods describe(OutputInterface $output, object $object, array $options = array()) Describes an InputArgument instance. from Descriptor Details describe(OutputInterface $output, object $object, array $options = array()) Describes an InputArgument instance. Parameters OutputInterface $output object $object array $options

JsonDecode::supportsDecoding()

bool supportsDecoding(string $format) Checks whether the deserializer can decode from given format. Parameters string $format format name Return Value bool

JsonDecode::decode()

mixed decode(string $data, string $format, array $context = array()) Decodes data. Parameters string $data Data to decode string $format Format name array $context options that decoders have access to. The format parameter specifies which format the data is in; valid values depend on the specific implementation. Authors implementing this interface are encouraged to document which formats they support in a non-inherited phpdoc comment. Return Value mixed Exceptions UnexpectedV

JsonDecode

class JsonDecode implements DecoderInterface Decodes JSON data. Methods __construct(bool $associative = false, int $depth = 512) Constructs a new JsonDecode instance. mixed decode(string $data, string $format, array $context = array()) Decodes data. bool supportsDecoding(string $format) Checks whether the deserializer can decode from given format. Details __construct(bool $associative = false, int $depth = 512) Constructs a new JsonD

JsonBundleWriter

class JsonBundleWriter implements BundleWriterInterface Writes .json resource bundles. Methods write(string $path, string $locale, mixed $data) Writes data to a resource bundle. Details write(string $path, string $locale, mixed $data) Writes data to a resource bundle. Parameters string $path The path to the resource bundle. string $locale The locale to (over-)write. mixed $data The data to write.

JsonBundleReader

class JsonBundleReader implements BundleReaderInterface Reads .json resource bundles. Methods mixed read(string $path, string $locale) Reads a resource bundle. Details mixed read(string $path, string $locale) Reads a resource bundle. Parameters string $path The path to the resource bundle. string $locale The locale to read. Return Value mixed Returns an array or {@link \ArrayAccess} instance for complex data, a scalar value otherwise.

IsTrueValidator

class IsTrueValidator 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 initia

IsTrue

class IsTrue 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_TRUE_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

IssnValidator

class IssnValidator extends ConstraintValidator Validates whether the value is a valid ISSN. 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.

Issn

class Issn 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. TOO_SHORT_ERROR TOO_LONG_ERROR MISSING_HYPHEN_ERROR INVALID_CHARACTERS_ERROR INVALID_CASE_ERROR CHECKSUM_FAILED_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from C