public function __construct($count) { if ($count < 0) { throw new \InvalidArgumentException('Count must be >= 0'); } $this->count = $count; }