for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the NNTP library.
*
* (c) Robin van der Vleuten <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Rvdv\Nntp\Response;
/**
* MultiLineResponse.
* @author Robin van der Vleuten <[email protected]>
class MultiLineResponse implements MultiLineResponseInterface
{
* @var array
private $lines;
* @var ResponseInterface
private $response;
* Constructor.
* @param ResponseInterface $response
* @param array $lines
public function __construct(ResponseInterface $response, array $lines)
$this->response = $response;
$this->lines = $lines;
}
* {@inheritdoc}
public function getMessage()
return $this->response->getMessage();
public function getStatusCode()
return $this->response->getStatusCode();
public function getLines()
return $this->lines;
public function __toString()
return (string) $this->response;