public function setCustomLayer(Layer $customLayer)
    {
        Assertion::count($this->getMethodCalls(), 0, 'Setting custom layer has to be done before any method call.');

        $this->customLayer = $customLayer;

        return $this;
    }
public function setCustomLayer(Layer $customLayer)
    {
        Assertion::count($this->getMethodCalls(), 0, 'Setting custom layer has to be done before any method call.');

        $this->customLayer = $customLayer;

        return $this;
    }
public function setCustomLayer ( Layer $ customLayer ) { Assertion :: count ( $ this -> getMethodCalls ( ) , 0 , 'Setting custom layer has to be done before any method call.' ) ; $ this -> customLayer = $ customLayer ; return $ this ; }
Set the custom layer.

@param Layer $customLayer The custom layer.

@return $this
Set the custom layer .