Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?php |
2 | |||||
3 | namespace LdapRecord\Models\ActiveDirectory; | ||||
4 | |||||
5 | class ExchangeServer extends Entry | ||||
6 | { | ||||
7 | /** | ||||
8 | * @inheritdoc | ||||
9 | */ | ||||
10 | public static $objectClasses = ['msExchExchangeServer']; | ||||
11 | |||||
12 | /** | ||||
13 | * @inheritdoc | ||||
14 | */ | ||||
15 | public static function boot() | ||||
16 | { | ||||
17 | parent::boot(); | ||||
18 | |||||
19 | static::addGlobalScope(new Scopes\HasServerRoleAttribute()); | ||||
20 | static::addGlobalScope(new Scopes\InConfigurationContext()); | ||||
21 | } | ||||
22 | } |