blob: 25287ae4a4bbbfff200fc1543d1e9cc7a8c66de1 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace LdapRecord\Models\ActiveDirectory;
4
5class ForeignSecurityPrincipal extends Entry
6{
7 /**
8 * The object classes of the LDAP model.
9 *
10 * @var array
11 */
12 public static $objectClasses = ['foreignsecurityprincipal'];
13
14 /**
15 * The groups relationship.
16 *
17 * Retrieves groups that the current security principal is apart of.
18 *
19 * @return \LdapRecord\Models\Relations\HasMany
20 */
21 public function groups()
22 {
23 return $this->hasMany(Group::class, 'member');
24 }
25}