src/Adldap.php
public function setPort($adPort)
    {
        if (!is_numeric($adPort)) {
            if ($adPort === null) {
                $adPort = 'null';
            }

            throw new AdldapException("The Port: $adPort is not numeric and cannot be used.");
        }

        $this->adPort = (string) $adPort;
    }
public function setPort($adPort)
    {
        if (!is_numeric($adPort)) {
            if ($adPort === null) {
                $adPort = 'null';
            }

            throw new AdldapException("The Port: $adPort is not numeric and cannot be used.");
        }

        $this->adPort = (string) $adPort;
    }
public function setPort ( $ adPort ) { if ( ! is_numeric ( $ adPort ) ) { if ( $ adPort === null ) { $ adPort = 'null' ; } throw new AdldapException ( "The Port: $adPort is not numeric and cannot be used." ) ; } $ this -> adPort = ( string ) $ adPort ; }
Sets the port number your domain controller communicates over.

@param int|string $adPort

@throws AdldapException
Sets the port number your domain controller communicates over .