setSource($asset); } /** * Sets the source of the layer. * * @param string|BaseSourceQualifier $source The source. * * @return $this */ public function setSource($source) { if ($source instanceof BaseSourceQualifier) { $this->getSourceQualifier()->setQualifierValue($source->getValue()); return $this; } $this->getSourceQualifier()->setQualifierValue(new SourceValue($source)); return $this; } }