protected function setParameterProvider(Provider &$provider = null)
    {
        if ($provider === null) {
            if ($this->provider === null) {
                throw new RuntimeException('No provider specified');
            }

            $provider = $this->provider;
        }
    }
protected function setParameterProvider(Provider &$provider = null)
    {
        if ($provider === null) {
            if ($this->provider === null) {
                throw new RuntimeException('No provider specified');
            }

            $provider = $this->provider;
        }
    }
protected function setParameterProvider ( Provider & $ provider = null ) { if ( $ provider === null ) { if ( $ this -> provider === null ) { throw new RuntimeException ( 'No provider specified' ) ; } $ provider = $ this -> provider ; } }
Checks to see that at least the object's provider is set or the input provider is set
If the input provider is not set, then it is set by reference to the object's provider

@param Provider $provider The provider to set
@throws RuntimeException Thrown if neither the input provider nor the object provider are specified
Checks to see that at least the object s provider is set or the input provider is set If the input provider is not set then it is set by reference to the object s provider