src/Models/Contact.php
public function setAccountID($accountID)
    {
        if (trim($accountID) == null)
        {
            throw new InvalidArgumentException("You must supply an account ID.");
        }

        if (!is_numeric($accountID))
        {
            throw new InvalidArgumentException("Account ID must be numeric.");
        }
        $this->accountID = intval($accountID);
    }
public function setAccountID($accountID)
    {
        if (trim($accountID) == null)
        {
            throw new InvalidArgumentException("You must supply an account ID.");
        }

        if (!is_numeric($accountID))
        {
            throw new InvalidArgumentException("Account ID must be numeric.");
        }
        $this->accountID = intval($accountID);
    }
public function setAccountID ( $ accountID ) { if ( trim ( $ accountID ) == null ) { throw new InvalidArgumentException ( "You must supply an account ID." ) ; } if ( ! is_numeric ( $ accountID ) ) { throw new InvalidArgumentException ( "Account ID must be numeric." ) ; } $ this -> accountID = intval ( $ accountID ) ; }
Set the account ID
@param $accountID
@return mixed
Set the account ID