LdapTools\Security\SID::__construct PHP Method

__construct() public method

public __construct ( string $sid )
$sid string The SID in string, short name, or binary form.
    public function __construct($sid)
    {
        if (LdapUtilities::isValidSid($sid)) {
            $this->decodeFromString($sid);
        } elseif (array_key_exists(strtoupper($sid), self::SHORT_NAME)) {
            $this->decodeFromString(self::SHORT_NAME[strtoupper($sid)]);
        } else {
            $this->decodeFromBinary($sid);
        }
    }