Overview

Namespaces

  • chippyash
    • Type
      • Exceptions
      • Interfaces
      • Number
        • Complex
        • Rational
      • String

Exceptions

  • GmpNotSupportedException
  • InvalidTypeException
  • NotRealComplexException
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * Hard type support
 4:  * For when you absolutely want to know what you are getting
 5:  *
 6:  * @author Ashley Kitson <akitson@zf4.biz>
 7:  * @copyright Ashley Kitson, UK, 2014
 8:  * @licence GPL V3 or later : http://www.gnu.org/licenses/gpl.html
 9:  */
10: namespace chippyash\Type\Exceptions;
11: 
12: /**
13:  * Thrown when trying to cast complex to real
14:  */
15: class NotRealComplexException extends \Exception
16: {
17: 
18:     protected $msg = 'Not a Real complex type';
19: 
20:     /**
21:      * @inheritDoc
22:      */
23:     public function __construct($ignored = null, $code = null, $previous = null)
24:     {
25:         parent::__construct($this->msg, $code, $previous);
26:     }
27: }
28: 
Chippyash Strong Types API documentation generated by ApiGen 2.8.0