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;
    }