Fixed some remaining one-line field declarations, added type docs

This commit is contained in:
Dylan K. Taylor
2019-02-05 14:03:27 +00:00
parent dbd0d04549
commit 5da48f429f
2 changed files with 19 additions and 2 deletions

View File

@ -30,7 +30,13 @@ use function count;
class Color{
/** @var int */
protected $a, $r, $g, $b;
protected $a;
/** @var int */
protected $r;
/** @var int */
protected $g;
/** @var int */
protected $b;
public function __construct(int $r, int $g, int $b, int $a = 0xff){
$this->r = $r & 0xff;