protected function buildKey($entity, array $pairs)
    {
        $key = [];
        foreach ($pairs as $local => $refer) {
            $key[] = $local . ':' . $this->accessor->getPropertyValue($entity, $refer);
        }

        return implode('-', $key);
    }
protected function buildKey($entity, array $pairs)
    {
        $key = [];
        foreach ($pairs as $local => $refer) {
            $key[] = $local . ':' . $this->accessor->getPropertyValue($entity, $refer);
        }

        return implode('-', $key);
    }
protected function buildKey ( $ entity , array $ pairs ) { $ key = [ ] ; foreach ( $ pairs as $ local => $ refer ) { $ key [ ] = $ local . ':' . $ this -> accessor -> getPropertyValue ( $ entity , $ refer ) ; } return implode ( '-' , $ key ) ; }
Builds key from key-value pairs

@param mixed $entity
@param array $pairs

@return string
Builds key from key - value pairs