manifest = $manifest; $this->asset = $file; } public function __toString() { return $this->getUri(); } public function getUri() { $file = ($this->manifest ? $this->manifest->get($this->asset) : $this->asset); return get_template_directory_uri() . self::$dist . "/$file"; } }