meyfa/php-svg

View on GitHub
src/Reading/AttributeConverter.php

Summary

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

namespace SVG\Reading;

/**
 * Base interface for SVG presentation attribute => CSS property converters.
 */
interface AttributeConverter
{
    /**
     * Convert the given attribute value into a valid CSS property value.
     *
     * @param string $value The attribute.
     *
     * @return string The converted value that can be used in CSS.
     */
    public function convert(string $value): string;
}