Serializer::encode()

final scalar encode(mixed $data, string $format, array $context = array()) Encodes data into the given format. Parameters mixed $data Data to encode string $format Format name array $context options that normalizers/encoders have access to. Return Value scalar Exceptions UnexpectedValueException

Serializer::decode()

final mixed decode(string $data, string $format, array $context = array()) Decodes a string into PHP 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.

Serializer::deserialize()

final object deserialize(mixed $data, string $type, string $format, array $context = array()) Deserializes data into the given type. Parameters mixed $data string $type string $format array $context Return Value object

Serializer

class Serializer implements SerializerInterface, NormalizerInterface, DenormalizerInterface, EncoderInterface, DecoderInterface Serializer serializes and deserializes data. objects are turned into arrays by normalizers. arrays are turned into various output formats by encoders. $serializer->serialize($obj, 'xml') $serializer->decode($data, 'xml') $serializer->denormalize($data, 'Class', 'xml') Methods __construct(array $normalizers = array(), array $encoders = array()) strin

SerializedParsedExpression

class SerializedParsedExpression extends ParsedExpression Represents an already parsed expression. Methods __construct(string $expression, Node $nodes) Constructor. string __toString() Gets the expression. from Expression getNodes() Details __construct(string $expression, Node $nodes) Constructor. Parameters string $expression An expression Node $nodes A Node representing the expression string __toStri

SelfCheckingResourceChecker::supports()

bool supports(ResourceInterface $metadata) Queries the ResourceChecker whether it can validate a given resource or not. Parameters ResourceInterface $metadata The resource to be checked for freshness Return Value bool True if the ResourceChecker can handle this resource type, false if not

SelfCheckingResourceInterface

interface SelfCheckingResourceInterface implements ResourceInterface Interface for Resources that can check for freshness autonomously, without special support from external services. Methods string __toString() Returns a string representation of the Resource. from ResourceInterface bool isFresh(int $timestamp) Returns true if the resource has not been updated since the given timestamp. mixed getResource() deprecated Returns the tied resource. from ResourceInterface Details

SelfCheckingResourceChecker

class SelfCheckingResourceChecker implements ResourceCheckerInterface Resource checker for instances of SelfCheckingResourceInterface. As these resources perform the actual check themselves, we can provide this class as a standard way of validating them. Methods bool supports(ResourceInterface $metadata) Queries the ResourceChecker whether it can validate a given resource or not. bool isFresh(ResourceInterface $resource, int $timestamp) Validates the resource. Details

SelectorNode::getPseudoElement()

null|string getPseudoElement() Return Value null|string

SelfCheckingResourceChecker::isFresh()

bool isFresh(ResourceInterface $resource, int $timestamp) Validates the resource. Parameters ResourceInterface $resource The resource to be validated. int $timestamp The timestamp at which the cache associated with this resource was created. Return Value bool True if the resource has not changed since the given timestamp, false otherwise.