예제 #1
0
파일: Unit.php 프로젝트: icanboogie/cldr
 /**
  * @param string $length One of `Units::LENGTH_*`.
  *
  * @return string
  */
 private function name_for($length)
 {
     return $this->units->name_for($this->unit, $length);
 }
예제 #2
0
 /**
  * Format the sequence.
  *
  * @param string $length One of `Units::DEFAULT_*`, Defaults to {@link Units::DEFAULT_LENGTH}.
  *
  * @return string
  */
 public function format($length = Units::DEFAULT_LENGTH)
 {
     return $this->units->format_sequence($this->sequence, $length);
 }