Inpsyde\MultilingualPress\Asset\DebugAwareAssetURL::__construct PHP Method

__construct() public method

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( string $file, string $dir_path, string $dir_url )
$file string File name (e.g., admin.css).
$dir_path string Local path to the directory containing the file.
$dir_url string Public URL for the directory containing the file.
    public function __construct($file, $dir_path, $dir_url)
    {
        $dir_path = rtrim($dir_path, '/');
        $file = $this->get_file($file, $dir_path);
        $file_path = "{$dir_path}/{$file}";
        if (is_readable($file_path)) {
            $this->url = rtrim($dir_url, '/') . "/{$file}";
            $this->version = filemtime($file_path);
        }
    }