src/Mapper/DbSettingsMapper.php
public function findParameter($parameter, $name = null)
    {
        if ($parameter instanceof ParameterInterface) {
            $where = $this->getWhereFromParameter($parameter);
        } elseif (is_string($parameter)) {
            $namespace = $parameter;
            $where = ['namespace' => $namespace, 'name' => $name];
        } else {
            throw new Exception\InvalidArgumentException(
                sprintf(
                    '%s expects parameter 1 to be string or an instance of HtSettingsModule\Entity\ParameterInterface, %s provided instead',
                    __METHOD__,
                    is_object($parameter) ? get_class($parameter) : gettype($parameter)
                )
            );
        }
        $select = $this->getSelect();
        $select->where($where);

        return $this->select($select);
    }
public function findParameter($parameter, $name = null)
    {
        if ($parameter instanceof ParameterInterface) {
            $where = $this->getWhereFromParameter($parameter);
        } elseif (is_string($parameter)) {
            $namespace = $parameter;
            $where = ['namespace' => $namespace, 'name' => $name];
        } else {
            throw new Exception\InvalidArgumentException(
                sprintf(
                    '%s expects parameter 1 to be string or an instance of HtSettingsModule\Entity\ParameterInterface, %s provided instead',
                    __METHOD__,
                    is_object($parameter) ? get_class($parameter) : gettype($parameter)
                )
            );
        }
        $select = $this->getSelect();
        $select->where($where);

        return $this->select($select);
    }
{@inheritDoc}