Exemple #1
0
 /**
  * @param string $length One of `Units::LENGTH_*`.
  *
  * @return string
  */
 private function name_for($length)
 {
     return $this->units->name_for($this->unit, $length);
 }
Exemple #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);
 }