Skip to content

Commit

Permalink
ENH Add generic types
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jan 11, 2024
1 parent 8226c4b commit 13d9664
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Control/LDAPDebugController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
* Class LDAPDebugController
*
* This controller is used to debug the LDAP connection.
*
* @template T of SiteTree
* @extends ContentController<T>
*/
class LDAPDebugController extends ContentController
{
Expand Down
3 changes: 3 additions & 0 deletions src/Extensions/LDAPGroupExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
* Class LDAPGroupExtension
*
* Adds a field to map an LDAP group to a SilverStripe {@link Group}
*
* @method SilverStripe\ORM\HasManyList<LDAPGroupMapping> LDAPGroupMappings()
*
* @extends DataExtension<Group&static>
*/
class LDAPGroupExtension extends DataExtension
{
Expand Down
3 changes: 2 additions & 1 deletion src/Extensions/LDAPMemberExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
use SilverStripe\ORM\DataExtension;
use SilverStripe\ORM\ValidationException;
use SilverStripe\ORM\ValidationResult;
use SilverStripe\Security\Member;

/**
* Class LDAPMemberExtension.
*
* Adds mappings from AD attributes to SilverStripe {@link Member} fields.
*
* @package activedirectory
* @extends DataExtension<Member>
*/
class LDAPMemberExtension extends DataExtension
{
Expand Down

0 comments on commit 13d9664

Please sign in to comment.