protected function getCheck()
    {
        $check = array(0 => '', 1 => '');
        $type  = $this->getType();

        switch ($type->getType()) {
            case 'int':
            case 'float':
                if ($type->isUnsigned()) {
                    $check[1] = '\UnderflowException';
                    $check[0] = '
        if ($this->' . $this->getPropertyName() . ' < 0) {
            throw new \UnderflowException(\'Value of "' . $this->getPropertyName() . '" must be greater than 0\');
        }';
                }
                break;
        }

        return $check;
    }
protected function getCheck()
    {
        $check = array(0 => '', 1 => '');
        $type  = $this->getType();

        switch ($type->getType()) {
            case 'int':
            case 'float':
                if ($type->isUnsigned()) {
                    $check[1] = '\UnderflowException';
                    $check[0] = '
        if ($this->' . $this->getPropertyName() . ' < 0) {
            throw new \UnderflowException(\'Value of "' . $this->getPropertyName() . '" must be greater than 0\');
        }';
                }
                break;
        }

        return $check;
    }
protected function getCheck ( ) { $ check = array ( 0 => '' , 1 => '' ) ; $ type = $ this -> getType ( ) ; switch ( $ type -> getType ( ) ) { case 'int' : case 'float' : if ( $ type -> isUnsigned ( ) ) { $ check [ 1 ] = '\UnderflowException' ; $ check [ 0 ] = '
        if ($this->' . $ this -> getPropertyName ( ) . ' < 0) {
            throw new \UnderflowException(\'Value of "' . $ this -> getPropertyName ( ) . '" must be greater than 0\');
        }' ; } break ; } return $ check ; }
Get check condition for numeric values & underflow if necessary.

@return string
Get check condition for numeric values & underflow if necessary .