public static function parse(Tokenizer $tokenizer, PdfParser $parser)
    {
        $result = [];

        // Recurse into this function until we reach the end of the array.
        while (($token = $tokenizer->getNextToken()) !== ']') {
            if ($token === false || ($value = $parser->readValue($token)) === false) {
                return false;
            }

            $result[] = $value;
        }

        $v = new self;
        $v->value = $result;

        return $v;
    }
public static function parse(Tokenizer $tokenizer, PdfParser $parser)
    {
        $result = [];

        // Recurse into this function until we reach the end of the array.
        while (($token = $tokenizer->getNextToken()) !== ']') {
            if ($token === false || ($value = $parser->readValue($token)) === false) {
                return false;
            }

            $result[] = $value;
        }

        $v = new self;
        $v->value = $result;

        return $v;
    }
public static function parse ( Tokenizer $ tokenizer , PdfParser $ parser ) { $ result = [ ] ; // Recurse into this function until we reach the end of the array. while ( ( $ token = $ tokenizer -> getNextToken ( ) ) !== ']' ) { if ( $ token === false || ( $ value = $ parser -> readValue ( $ token ) ) === false ) { return false ; } $ result [ ] = $ value ; } $ v = new self ; $ v -> value = $ result ; return $ v ; }
Parses an array of the passed tokenizer and parser.

@param Tokenizer $tokenizer
@param PdfParser $parser
@return bool|self
@throws PdfTypeException
Parses an array of the passed tokenizer and parser .