Zend\Console\Adapter\AbstractAdapter::writeBox
Write a box at the specified coordinates.
If X or Y coordinate value is negative, it will be calculated as the distance from far right or bottom edge of the console (respectively).
Signature
public function writeBox(int
$x1,
[int
$y1 = self::LINE_SINGLE,
[int
$x2 = self::LINE_SINGLE,
[int
$y2 = self::LINE_SINGLE,
[int
$lineStyle = self::LINE_SINGLE,
[int
$fillStyle = self::FILL_NONE,
[int
$color = null,
[int
$bgColor = null,
[null|int
$fillColor = null,
[null|int
$fillBgColor = null]]]]]]]]] )
Parameters
$x1
— int- Top-left corner X coordinate (column)
$y1
— int- Top-left corner Y coordinate (row)
$x2
— int- Bottom-right corner X coordinate (column)
$y2
— int- Bottom-right corner Y coordinate (row)
$lineStyle
— int- (optional) Box border style.
$fillStyle
— int- (optional) Box fill style or a single character to fill it with.
$color
— int- (optional) Foreground color
$bgColor
— int- (optional) Background color
$fillColor
— object- (optional) Foreground color of box fill
$fillBgColor
— object- (optional) Background color of box fill
Errors/Exceptions
-
BadMethodCallException
- if coordinates are invalid