public function placeholder($config = null): string
    {
        $config = array_merge($this->defaults, $config ?? []);

        switch ($config['type']) {
            case 'svg':
                return $this->placeholderSVG($config);
            case 'gif':
                return $this->placeholderGIF($config);
            case 'silhouette':
                return $this->placeholderSilhuette($config);
        }

        return '';
    }
public function placeholder($config = null): string
    {
        $config = array_merge($this->defaults, $config ?? []);

        switch ($config['type']) {
            case 'svg':
                return $this->placeholderSVG($config);
            case 'gif':
                return $this->placeholderGIF($config);
            case 'silhouette':
                return $this->placeholderSilhuette($config);
        }

        return '';
    }
public function placeholder ( $ config = null ) : string { $ config = array_merge ( $ this -> defaults , $ config ?? [ ] ) ; switch ( $ config [ 'type' ] ) { case 'svg' : return $ this -> placeholderSVG ( $ config ) ; case 'gif' : return $ this -> placeholderGIF ( $ config ) ; case 'silhouette' : return $ this -> placeholderSilhuette ( $ config ) ; } return '' ; }
Main public placeholder method.

@param array|null $config
@return string
@throws ImagerException
Main public placeholder method .