8000 [LDAP] Check whether an entry attribute exists · symfony/symfony@56ef8a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 56ef8a0

Browse files
committed
[LDAP] Check whether an entry attribute exists
Fixed bool/boolean coding standard
1 parent 0b67fa3 commit 56ef8a0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Symfony/Component/Ldap/Entry.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ public function getDn()
3535
return $this->dn;
3636
}
3737

38+
/**
39+
* Returns whether an attribute exists.
40+
*
41+
* @param $name string The name of the attribute
42+
*
43+
* @return bool
44+
*/
45+
public function hasAttribute($name)
46+
{
47+
return isset($this->attributes[$name]);
48+
}
49+
3850
/**
3951
* Returns a specific attribute's value.
4052
*

0 commit comments

Comments
 (0)
0