# wp-optimize/4.5.4/vendor/mrclay/minify/lib/Minify/ServeConfiguration.php

WP-Optimize – Cache, Compress images, Minify &amp; Clean database to boost page speed &amp; performance, version 4.5.4. 72 lines.

- Page: https://pluginprobe.com/plugins/wp-optimize/4.5.4/code/vendor/mrclay/minify/lib/Minify/ServeConfiguration.php
- Raw: https://pluginprobe.com/plugins/wp-optimize/4.5.4/raw/vendor/mrclay/minify/lib/Minify/ServeConfiguration.php
- Modified: 2021-06-07T22:42:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-optimize/4.5.4/code/vendor/mrclay/minify/lib/Minify/ServeConfiguration.php#L10-L20`.

```php
<?php
/**
 * Class Minify_ServeConfiguration
 * @package Minify
 */

/**
 * A configuration for Minify::serve() determined by a controller
 *
 * @package Minify
 */
class Minify_ServeConfiguration
{

    /**
     * @var Minify_SourceInterface[]
     */
    protected $sources;

    /**
     * @var array
     */
    protected $options;

    /**
     * @var string
     */
    protected $selectionId = '';

    /**
     * @param array                    $options
     * @param Minify_SourceInterface[] $sources
     * @param string                   $selectionId
     */
    public function __construct(array $options, array $sources = array(), $selectionId = '')
    {
        $this->options = $options;
        $this->sources = $sources;
        $this->selectionId = $selectionId;
    }

    /**
     * @return array
     */
    public function getOptions()
    {
        return $this->options;
    }

    /**
     * @return Minify_SourceInterface[]
     */
    public function getSources()
    {
        return $this->sources;
    }

    /**
     * Short name to place inside cache id
     *
     * The setupSources() method may choose to set this, making it easier to
     * recognize a particular set of sources/settings in the cache folder. It
     * will be filtered and truncated to make the final cache id <= 250 bytes.
     *
     * @return string
     */
    public function getSelectionId()
    {
        return $this->selectionId;
    }
}

```
