private static function calculateYearInQuadCycle($year) {
        
        $yearInGrandCycle = static::calculateYearInGrandCycle($year);
        
        // static::FIRST_QUAD_CYCLE;
        $yearInQuadCycle = $yearInGrandCycle % static::FIRST_QUAD_CYCLE;
        
        if ((static::GRAND_CYCLE_LENGTH - static::SECOND_QUAD_CYCLE) < $yearInGrandCycle) {
            
            // static::SECOND_QUAD_CYCLE;
            $yearInQuadCycle = $yearInGrandCycle - (21 * static::FIRST_QUAD_CYCLE);
            
        }
        
        return $yearInQuadCycle;
    }
private static function calculateYearInQuadCycle($year) {
        
        $yearInGrandCycle = static::calculateYearInGrandCycle($year);
        
        // static::FIRST_QUAD_CYCLE;
        $yearInQuadCycle = $yearInGrandCycle % static::FIRST_QUAD_CYCLE;
        
        if ((static::GRAND_CYCLE_LENGTH - static::SECOND_QUAD_CYCLE) < $yearInGrandCycle) {
            
            // static::SECOND_QUAD_CYCLE;
            $yearInQuadCycle = $yearInGrandCycle - (21 * static::FIRST_QUAD_CYCLE);
            
        }
        
        return $yearInQuadCycle;
    }
private static function calculateYearInQuadCycle ( $ year ) { $ yearInGrandCycle = static :: calculateYearInGrandCycle ( $ year ) ; // static::FIRST_QUAD_CYCLE; $ yearInQuadCycle = $ yearInGrandCycle % static :: FIRST_QUAD_CYCLE ; if ( ( static :: GRAND_CYCLE_LENGTH - static :: SECOND_QUAD_CYCLE ) < $ yearInGrandCycle ) { // static::SECOND_QUAD_CYCLE; $ yearInQuadCycle = $ yearInGrandCycle - ( 21 * static :: FIRST_QUAD_CYCLE ) ; } return $ yearInQuadCycle ; }
check the quad cycle type & count

@param int $year the year in jalali calendar

@return int|number year in quad cycle
check the quad cycle type & count