public function setLayers(array $layers)
    {
        $this->layers = array_values(array_filter($layers, function ($layer): bool {
            return $layer instanceof Layer;
        }));
        return $this;
    }
public function setLayers(array $layers)
    {
        $this->layers = array_values(array_filter($layers, function ($layer): bool {
            return $layer instanceof Layer;
        }));
        return $this;
    }
public function setLayers ( array $ layers ) { $ this -> layers = array_values ( array_filter ( $ layers , function ( $ layer ) : bool { return $ layer instanceof Layer ; } ) ) ; return $ this ; }
Sets the layers of the icon.
@param array|Layer[] $layers
@return $this Implementing fluent interface.
Sets the layers of the icon .