public function search(string $key, string $value)
    {
        return $this->getRepository()->findBy(['key' => $key, 'value' => $value]);
    }
public function search(string $key, string $value)
    {
        return $this->getRepository()->findBy(['key' => $key, 'value' => $value]);
    }
public function search ( string $ key , string $ value ) { return $ this -> getRepository ( ) -> findBy ( [ 'key' => $ key , 'value' => $ value ] ) ; }
Key-value pair search.

@param string $key
@param string $value

@return array
Key - value pair search .