Overview

Namespaces

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

Interfaces

  • ComplexTypeInterface
  • GMPInterface
  • NumericTypeInterface
  • RationalTypeInterface
  • TypeInterface
  • 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\Interfaces;
11: 
12: /**
13:  * Interface for chippyash\Type\Number\Rational\RationalType types
14:  * Makes it broadly compatible with other types
15:  */
16: interface RationalTypeInterface extends TypeInterface
17: {
18:     /**
19:      * Get the numerator
20:      * @return mixed
21:      */
22:     public function numerator();
23: 
24:     /**
25:      * Get the denominator
26:      *
27:      * @return mixed
28:      */
29:     public function denominator();
30: }
31: 
Chippyash Strong Types API documentation generated by ApiGen 2.8.0