WordPress\AiClient\Files\DTO
File::__construct
Constructor.
Метод класса: File{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$File = new File(); $File->__construct( $file, ?string $mimeType );
- $file(строка) (обязательный)
- The file string (URL, base64 data, or local path).
- ?string $mimeType
- .
По умолчанию:null
Список изменений
| С версии 0.1.0 | Введена. |
Код File::__construct() File:: construct WP 7.0
public function __construct(string $file, ?string $mimeType = null)
{
// Detect and process the file type (will set MIME type if possible)
$this->detectAndProcessFile($file, $mimeType);
}