You are here

public static function Inline::initialize in Lockr 7.3

Parameters

int $flags:

int|null $parsedLineNumber:

string|null $parsedFilename:

3 calls to Inline::initialize()
Inline::parse in vendor/symfony/yaml/Inline.php
Converts a YAML string to a PHP value.
InlineTest::setUp in vendor/symfony/yaml/Tests/InlineTest.php
Parser::doParse in vendor/symfony/yaml/Parser.php

File

vendor/symfony/yaml/Inline.php, line 42

Class

Inline
Inline implements a YAML parser/dumper for the YAML inline syntax.

Namespace

Symfony\Component\Yaml

Code

public static function initialize($flags, $parsedLineNumber = null, $parsedFilename = null) {
  self::$exceptionOnInvalidType = (bool) (Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE & $flags);
  self::$objectSupport = (bool) (Yaml::PARSE_OBJECT & $flags);
  self::$objectForMap = (bool) (Yaml::PARSE_OBJECT_FOR_MAP & $flags);
  self::$constantSupport = (bool) (Yaml::PARSE_CONSTANT & $flags);
  self::$parsedFilename = $parsedFilename;
  if (null !== $parsedLineNumber) {
    self::$parsedLineNumber = $parsedLineNumber;
  }
}