SplCaster

class SplCaster Casts SPL related classes to array representation. Methods static castArrayObject(ArrayObject $c, array $a, Stub $stub, $isNested) static castHeap(Iterator $c, array $a, Stub $stub, $isNested) static castDoublyLinkedList(SplDoublyLinkedList $c, array $a, Stub $stub, $isNested) static castFileInfo(SplFileInfo $c, array $a, Stub $stub, $isNested) static castFileObject(SplFileObject $c, array $a, Stub $stub, $isNested) static castFixedArray(SplF

ClassMetadata::addPropertyConstraint()

ClassMetadata addPropertyConstraint(string $property, Constraint $constraint) Adds a constraint to the given property. Parameters string $property The name of the property Constraint $constraint The constraint Return Value ClassMetadata This object

Component\Debug

Namespaces Symfony\Component\Debug\Exception Classes Debug Registers all the debug tools. ErrorHandler ErrorHandler. ExceptionHandler ExceptionHandler converts an exception to a Response object.

Table::getStyle()

TableStyle getStyle() Gets the current table style. Return Value TableStyle

Collator::compare()

bool|int compare(string $str1, string $str2) Not supported. Compare two Unicode strings. Parameters string $str1 The first string to compare string $str2 The second string to compare Return Value bool|int Return the comparison result or false on failure: 1 if $str1 is greater than $str2 0 if $str1 is equal than $str2 -1 if $str1 is less than $str2 Exceptions MethodNotImplementedException See also http://www.php.net/manual/en/collator.compare.php

IntlDateFormatter::parse()

string parse(string $value, int $position = null) Parse string to a timestamp value. Parameters string $value String to convert to a time value int $position Not supported. Position at which to start the parsing in $value (zero-based) If no error occurs before $value is consumed, $parsepos will contain -1 otherwise it will contain the position at which parsing ended. If $parsepos > strlen($value), the parse fails immediately. Return Value string Parsed value as a timestamp E

PhpFileDumper

class PhpFileDumper extends FileDumper PhpFileDumper generates PHP files from a message catalogue. Methods setRelativePathTemplate(string $relativePathTemplate) Sets the template for the relative paths to files. from FileDumper setBackup(bool $backup) Sets backup flag. from FileDumper dump(MessageCatalogue $messages, array $options = array()) Dumps the message catalogue. from FileDumper string formatCatalogue(MessageCatalogue $messages, string $domain, array $options = array(

OutputStyle::writeln()

writeln(string|array $messages, $type = self::OUTPUT_NORMAL) Writes a message to the output and adds a newline at the end. Parameters string|array $messages The message as an array of lines of a single string $type

CodeExtension::getFileLink()

string getFileLink(string $file, int $line) Returns the link for a given file/line pair. Parameters string $file An absolute file path int $line The line number Return Value string A link of false

TranslationCollectionType::setDefaultOptions()

setDefaultOptions(OptionsResolverInterface $resolver) Sets the default options for this type. Parameters OptionsResolverInterface $resolver The resolver for the options.