public function parameterByName($name)
    {
        $this->typeCheck->parameterByName(func_get_args());

        foreach ($this->parameters() as $parameter) {
            if ($parameter->name() === $name) {
                return $parameter;
            }
        }

        return null;
    }
public function parameterByName($name)
    {
        $this->typeCheck->parameterByName(func_get_args());

        foreach ($this->parameters() as $parameter) {
            if ($parameter->name() === $name) {
                return $parameter;
            }
        }

        return null;
    }
@param string $name

@return Parameter|null