/**
  * Return phonetic nibble value
  *
  * Due to multiple possible constants based on nibble position (first, second)
  * this method should be used in favor of the default search method
  *
  * @param Nibble $nibble
  * @param bool $isFirst
  * @return string
  */
 public static function find(Nibble $nibble, $isFirst)
 {
     $keys = array_keys(static::toArray(), $nibble->getValue(), true);
     return $isFirst ? $keys[0] : $keys[1];
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function getValue()
 {
     return $this->firstNibble->getValue() . $this->secondNibble->getValue();
 }