<?php
/**
* InvalidTelephoneException.class.php
*
* This file contains the definition of the InvalidTelephoneException class.
*
* @package SolidWorks
* @author John Diamond <hide@address.com>
* @copyright John Diamond <hide@address.com>
* @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
*/
/**
* InvalidTelephoneException
*
* @package SolidWorks
* @author John Diamond <hide@address.com>
*/
class InvalidTelephoneException extends FieldException {
const MESSAGE = '[PLEASE_ENTER_A_VALID_TELEPHONE_NUMER_FOR] %s. [TELEPHONE_NUMBERS_MUST_BE]';
/**
* Error Message String
*
* @return string An error message that can be displayed to the user
*/
public function __toString() {
return sprintf( self::MESSAGE, $this->getField() );
}
}
?>