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