src/Models/Contact.php
public function setContactID($contactID)
    {
        if (trim($contactID) == null)
        {
            throw new InvalidArgumentException("You must supply a contact ID.");
        }

        if (!is_numeric($contactID))
        {
            throw new InvalidArgumentException("Contact ID must be numeric.");
        }
        $this->contactID = intval($contactID);
    }
public function setContactID($contactID)
    {
        if (trim($contactID) == null)
        {
            throw new InvalidArgumentException("You must supply a contact ID.");
        }

        if (!is_numeric($contactID))
        {
            throw new InvalidArgumentException("Contact ID must be numeric.");
        }
        $this->contactID = intval($contactID);
    }
public function setContactID ( $ contactID ) { if ( trim ( $ contactID ) == null ) { throw new InvalidArgumentException ( "You must supply a contact ID." ) ; } if ( ! is_numeric ( $ contactID ) ) { throw new InvalidArgumentException ( "Contact ID must be numeric." ) ; } $ this -> contactID = intval ( $ contactID ) ; }
Set the contact ID
@param $contactID
@return mixed
Set the contact ID