mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Implemented hasClass
This commit is contained in:
@@ -36,4 +36,12 @@ trait ClassAttribut
|
||||
{
|
||||
return $this->class;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function hasClass(): bool
|
||||
{
|
||||
return isset($this->class);
|
||||
}
|
||||
}
|
||||
|
@@ -16,4 +16,9 @@ interface ClassAttributInterface
|
||||
* @return string
|
||||
*/
|
||||
public function getClass(): string;
|
||||
|
||||
/**
|
||||
* @return bool True if class is defined
|
||||
*/
|
||||
public function hasClass(): bool;
|
||||
}
|
||||
|
Reference in New Issue
Block a user