'ball']; /** * Create a new attempt ball * * @param bool $taken Whether the attempt was taken */ public function __construct(bool $taken = false) { if ($taken) { $this->addAttributes(['class' => 'ball-size-s taken']); } else { $this->addAttributes(['class' => 'ball-size-xs']); } } }