Change Schema classes to final
This commit is contained in:
parent
4fd51abcb1
commit
a62e7ddeca
@ -11,7 +11,7 @@ use Illuminate\Support\Facades\Log;
|
||||
* @package phpLDAPadmin
|
||||
* @subpackage Schema
|
||||
*/
|
||||
class AttributeType extends Base {
|
||||
final class AttributeType extends Base {
|
||||
// The attribute from which this attribute inherits (if any)
|
||||
private ?string $sup_attribute = NULL;
|
||||
|
||||
@ -246,7 +246,7 @@ class AttributeType extends Base {
|
||||
|
||||
public function __clone()
|
||||
{
|
||||
// When we clone, we need to break the reference to
|
||||
// When we clone, we need to break the reference too
|
||||
$this->aliases = clone $this->aliases;
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ use Illuminate\Support\Facades\Log;
|
||||
* @package phpLDAPadmin
|
||||
* @subpackage Schema
|
||||
*/
|
||||
class LDAPSyntax extends Base {
|
||||
final class LDAPSyntax extends Base {
|
||||
// Is human readable?
|
||||
private ?bool $is_not_human_readable = NULL;
|
||||
|
||||
|
@ -11,7 +11,7 @@ use Illuminate\Support\Facades\Log;
|
||||
* @package phpLDAPadmin
|
||||
* @subpackage Schema
|
||||
*/
|
||||
class MatchingRule extends Base {
|
||||
final class MatchingRule extends Base {
|
||||
// This rule's syntax OID
|
||||
private ?string $syntax = NULL;
|
||||
|
||||
|
@ -11,7 +11,7 @@ use Illuminate\Support\Facades\Log;
|
||||
* @package phpLDAPadmin
|
||||
* @subpackage Schema
|
||||
*/
|
||||
class MatchingRuleUse extends Base {
|
||||
final class MatchingRuleUse extends Base {
|
||||
// An array of attribute names who use this MatchingRule
|
||||
private Collection $used_by_attrs;
|
||||
|
||||
|
@ -15,7 +15,7 @@ use App\Ldap\Entry;
|
||||
* @package phpLDAPadmin
|
||||
* @subpackage Schema
|
||||
*/
|
||||
class ObjectClass extends Base {
|
||||
final class ObjectClass extends Base {
|
||||
// The server ID that this objectclass belongs to.
|
||||
private Server $server;
|
||||
|
||||
|
@ -13,7 +13,7 @@ namespace App\Classes\LDAP\Schema;
|
||||
* specified it. This class is therefore used by the class ObjectClass to determine
|
||||
* inheritance.
|
||||
*/
|
||||
class ObjectClassAttribute extends Base {
|
||||
final class ObjectClassAttribute extends Base {
|
||||
// This Attribute's root.
|
||||
private string $source;
|
||||
|
||||
|
@ -18,7 +18,7 @@ use App\Classes\LDAP\Schema\{AttributeType,Base,LDAPSyntax,MatchingRule,Matching
|
||||
use App\Exceptions\InvalidUsage;
|
||||
use App\Ldap\Entry;
|
||||
|
||||
class Server
|
||||
final class Server
|
||||
{
|
||||
// This servers schema objectclasses
|
||||
private Collection $attributetypes;
|
||||
@ -59,6 +59,7 @@ class Server
|
||||
* @return Collection
|
||||
* @throws ObjectNotFoundException
|
||||
* @testedin GetBaseDNTest::testBaseDNExists();
|
||||
* @todo Need to allow for the scenario if the baseDN is not readable by ACLs
|
||||
*/
|
||||
public static function baseDNs($connection=NULL,bool $objects=TRUE): Collection
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user