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