ideasonpurpose/wp-svg-lib

View on GitHub
src/Deprecated/GetSVG.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace IdeasOnPurpose\WP\Deprecated;

trait GetSVG
{
    /**
     * Alias for $this->fetch()
     * TODO: Pick a name
     * @param mixed $key
     * @param mixed $attributes
     * @deprecated
     * @return void
     */
    public function getSVG($key, $attributes = [])
    {
        return $this->fetch($key, $attributes);
    }

    abstract public function fetch($key, $attributes = []);
}