Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?php |
2 | |||||
3 | namespace Adldap\Models\Concerns; | ||||
4 | |||||
5 | trait HasCriticalSystemObject | ||||
6 | { | ||||
7 | /** | ||||
8 | * Returns true / false if the entry is a critical system object. | ||||
9 | * | ||||
10 | * @return null|bool | ||||
11 | */ | ||||
12 | public function isCriticalSystemObject() | ||||
13 | { | ||||
14 | $attribute = $this->getFirstAttribute($this->schema->isCriticalSystemObject()); | ||||
15 | |||||
16 | return $this->convertStringToBool($attribute); | ||||
17 | } | ||||
18 | } |