Implemented hasClass

This commit is contained in:
Kevin Frantz
2019-02-03 13:13:11 +01:00
parent d00d70f440
commit 11d8ac9927
3 changed files with 15 additions and 0 deletions

View File

@@ -36,4 +36,12 @@ trait ClassAttribut
{
return $this->class;
}
/**
* @return bool
*/
public function hasClass(): bool
{
return isset($this->class);
}
}