<?php

/**
 * Vvveb
 *
 * Copyright (C) 2022  Ziadin Givan
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 */

namespace Vvveb\System;

class Media {
	/**
	 * Constructor.
	 */
	public function __construct() {
	}

	/**
	 * Get a media item by type, id, size and attributes.
	 *
	 * @param string               $type  Media type.
	 * @param int|string           $id    Media identifier.
	 * @param string|array         $size  Size specification.
	 * @param array<string, mixed> $attrs Additional attributes.
	 *
	 * @return void
	 */
	public function get(string $type, int|string $id, string|array $size, array $attrs): void {
	}

	/**
	 * Save a media item to the given path.
	 *
	 * @param string               $type  Media type.
	 * @param string               $path  File path to save to.
	 * @param array<string, mixed> $attrs Additional attributes.
	 *
	 * @return void
	 */
	public function save(string $type, string $path, array $attrs): void {
	}
}
