Response::setCache()

Response setCache(array $options) Sets the response's cache headers (validation and/or expiration). Available options are: etag, lastmodified, maxage, s_maxage, private, and public. Parameters array $options An array of cache options Return Value Response Exceptions InvalidArgumentException

StopwatchExtension::getTokenParsers()

getTokenParsers()

ContainerBuilder::setAliases()

setAliases(array $aliases) Sets the service aliases. Parameters array $aliases An array of aliases

CardSchemeValidator

class CardSchemeValidator extends ConstraintValidator Validates that a card number belongs to a specified scheme. 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) Validates a credit

CountryValidator

class CountryValidator extends ConstraintValidator Validates whether a value is a valid country code. 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

Definition::setTags()

Definition setTags(array $tags) Sets tags for this definition. Parameters array $tags Return Value Definition the current instance

ObjectIdentityInterface

interface ObjectIdentityInterface Represents the identity of an individual domain object instance. Methods bool equals(ObjectIdentityInterface $identity) We specifically require this method so we can check for object equality explicitly, and do not have to rely on referencial equality instead. string getIdentifier() Obtains a unique identifier for this object. The identifier must not be re-used for other objects with the same type. string getType() Returns a type for the domain

ChainAdapter::getItems()

getItems(array $keys = array()) {@inheritdoc} Parameters array $keys

ExpressionRequestMatcher

class ExpressionRequestMatcher extends RequestMatcher ExpressionRequestMatcher uses an expression to match a Request. Methods __construct(string|null $path = null, string|null $host = null, string|string[]|null $methods = null, string|string[]|null $ips = null, array $attributes = array(), string|string[]|null $schemes = null) from RequestMatcher matchScheme(string|string[]|null $scheme) Adds a check for the HTTP scheme. from RequestMatcher matchHost(string $regexp) Adds a check

AttributeMetadataInterface

interface AttributeMetadataInterface Stores metadata needed for serializing and deserializing attributes. Primarily, the metadata stores serialization groups. Methods string getName() Gets the attribute name. addGroup(string $group) Adds this attribute to the given group. string[] getGroups() Gets groups of this attribute. setMaxDepth(int|null $maxDepth) Sets the serialization max depth for this attribute. int|null getMaxDepth() Gets the serialization max depth for th