public static function parse(Parser\ParserInterface $parser, $responseResource) { $status = $parser->getStatus(); $items = $parser->getDataItems($responseResource); $item = $items[0]; return new self($status, $item); }
public static function parse(Parser\ParserInterface $parser, $responseResource) { $status = $parser->getStatus(); $count = $parser->getResponseDataValue(); $items = $parser->getDataItems($responseResource); return new self($status, $count, $items); }