original_string: private function yearType($year)
      {
          $year_length = $this->yToJd($year + 1) - $this->yToJd($year);
  
          if ($year_length === 353 || $year_length === 383) {
              return self::DEFECTIVE_YEAR;
          } elseif ($year_length === 355 || $year_length === 385) {
              return self::COMPLETE_YEAR;
          } else {
              return self::REGULAR_YEAR;
          }
      }
code: private function yearType($year)
      {
          $year_length = $this->yToJd($year + 1) - $this->yToJd($year);
  
          if ($year_length === 353 || $year_length === 383) {
              return self::DEFECTIVE_YEAR;
          } elseif ($year_length === 355 || $year_length === 385) {
              return self::COMPLETE_YEAR;
          } else {
              return self::REGULAR_YEAR;
          }
      }
code_tokens: private function yearType ( $ year ) { $ year_length = $ this -> yToJd ( $ year + 1 ) - $ this -> yToJd ( $ year ) ; if ( $ year_length === 353 || $ year_length === 383 ) { return self :: DEFECTIVE_YEAR ; } elseif ( $ year_length === 355 || $ year_length === 385 ) { return self :: COMPLETE_YEAR ; } else { return self :: REGULAR_YEAR ; } }
docstring: Determine whether a year is normal, defective or complete.
  
  @param int $year
  
  @return int defective (-1), normal (0) or complete (1)
docstring_tokens: Determine whether a year is normal defective or complete .