src/Behat/Gherkin/Lexer.php
public function takeToken($type, $value = null)
    {
        return array(
            'type'     => $type,
            'line'     => $this->lineNumber,
            'value'    => $value ?: null,
            'deferred' => false
        );
    }
public function takeToken($type, $value = null)
    {
        return array(
            'type'     => $type,
            'line'     => $this->lineNumber,
            'value'    => $value ?: null,
            'deferred' => false
        );
    }
public function takeToken ( $ type , $ value = null ) { return array ( 'type' => $ type , 'line' => $ this -> lineNumber , 'value' => $ value ? : null , 'deferred' => false ) ; }
Constructs token with specified parameters.

@param string $type  Token type
@param string $value Token value

@return array
Constructs token with specified parameters .