<?php

namespace Adldap\Models\Traits;

use Adldap\Schemas\ActiveDirectory;

trait HasCriticalSystemObjectTrait
{
    /**
     * Returns true / false if the entry is a critical system object.
     *
     * @return null|bool
     */
    public function getIsCriticalSystemObject()
    {
        $attribute = $this->getAttribute(ActiveDirectory::IS_CRITICAL_SYSTEM_OBJECT, 0);

        return $this->convertStringToBool($attribute);
    }
}

<?php

namespace Adldap\Models\Traits;

use Adldap\Schemas\ActiveDirectory;

trait HasCriticalSystemObjectTrait
{
    /**
     * Returns true / false if the entry is a critical system object.
     *
     * @return null|bool
     */
    public function isCriticalSystemObject()
    {
        $attribute = $this->getAttribute(ActiveDirectory::IS_CRITICAL_SYSTEM_OBJECT, 0);

        return $this->convertStringToBool($attribute);
    }
}

Change bool accessor to is instead of get
Change bool accessor to is instead of get
