| 1 | <?php |
||
| 17 | class BufferOutput implements OutputInterface |
||
| 18 | { |
||
| 19 | use \GuzzleHttp\Psr7\MessageTrait; |
||
| 20 | use \JonnyW\PhantomJs\IO\OutputTrait; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Format. |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $format; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Internal constructor. |
||
| 31 | * |
||
| 32 | * @param string $format (default: 'PNG') |
||
| 33 | * |
||
| 34 | * @throws \InvalidArgumentException |
||
| 35 | */ |
||
| 36 | public function __construct($format = 'PNG') |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get format. |
||
| 54 | * |
||
| 55 | * @access public |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getFormat() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Get output type. |
||
| 65 | * |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | public function getType() |
||
| 72 | } |
||
| 73 |