NoSuchOptionException

class NoSuchOptionException extends OutOfBoundsException implements ExceptionInterface Thrown when trying to read an option that has no value set. When accessing optional options from within a lazy option or normalizer you should first check whether the optional option is set. You can do this with isset($options['optional']). In contrast to the {@link UndefinedOptionsException}, this is a runtime exception that can occur when evaluating lazy options.

NoSuchMetadataException

class NoSuchMetadataException extends ValidatorException

NoSuchIndexException

class NoSuchIndexException extends AccessException Thrown when an index cannot be found.

NormalizerInterface::supportsNormalization()

bool supportsNormalization(mixed $data, string $format = null) Checks whether the given class is supported for normalization by this normalizer. Parameters mixed $data Data to normalize string $format The format being (de-)serialized from or into Return Value bool

NormalizerInterface::normalize()

array|scalar normalize(object $object, string $format = null, array $context = array()) Normalizes an object into a set of arrays/scalars. Parameters object $object object to normalize string $format format the normalization result will be encoded as array $context Context options for the normalizer Return Value array|scalar

NormalizerInterface

interface NormalizerInterface Defines the interface of normalizers. Methods array|scalar normalize(object $object, string $format = null, array $context = array()) Normalizes an object into a set of arrays/scalars. bool supportsNormalization(mixed $data, string $format = null) Checks whether the given class is supported for normalization by this normalizer. Details array|scalar normalize(object $object, string $format = null, array $context = array())

NormalizerAwareTrait

trait NormalizerAwareTrait NormalizerAware trait. Methods setNormalizer(NormalizerInterface $normalizer) Sets the normalizer. Details setNormalizer(NormalizerInterface $normalizer) Sets the normalizer. Parameters NormalizerInterface $normalizer A NormalizerInterface instance

NormalizerAwareInterface

interface NormalizerAwareInterface Class accepting a normalizer. Methods setNormalizer(NormalizerInterface $normalizer) Sets the owning Normalizer object. Details setNormalizer(NormalizerInterface $normalizer) Sets the owning Normalizer object. Parameters NormalizerInterface $normalizer

NormalizationBuilder::remap()

NormalizationBuilder remap(string $key, string $plural = null) Registers a key to remap to its plural form. Parameters string $key The key to remap string $plural The plural of the key in case of irregular plural Return Value NormalizationBuilder

NormalizationBuilder::before()

ExprBuilder|NormalizationBuilder before(Closure $closure = null) Registers a closure to run before the normalization or an expression builder to build it if null is provided. Parameters Closure $closure Return Value ExprBuilder|NormalizationBuilder