public function __construct(VarDumpParser $parser) { $count = intval($parser->readUntil(")")); $parser->readUntil("{"); $parser->skip(1); $parser->ltrim(); if ($parser->peek(3) === "...") { $this->threeDots = true; return; } $this->readArray($count, $parser); $parser->readUntil("}"); $parser->skip(1); // } $parser->ltrim(); }