Files
Roman Pyrih c2e100a763 first commit
2023-07-24 08:30:51 +02:00

30 lines
516 B
PHP

<?php if ( ! defined( 'ABSPATH' ) ) {
die( 'Direct access forbidden.' );
}
class Brizy_Editor_Asset_Media {
private $url;
private $path;
public function __construct( $url, $path ) {
$this->path = $path;
$this->url = $url;
}
public function get_path() {
return $this->path;
}
public function get_url() {
return $this->url;
}
public function get_name() {
return basename( $this->get_path() );
}
public function get_type() {
return pathinfo( $this->get_path(), PATHINFO_EXTENSION );
}
}