<?php

namespace WBCR\Factory_481\Entities;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/*
 * @author        Alex Kovalev <alex.kovalevv@gmail.com>, repo: https://github.com/alexkovalevv
 * @author        Webcraftic <wordpress.webraftic@gmail.com>, site: https://webcraftic.com
 * @since 4.1.1
 */

class Paths {

	public $absolute;
	public $main_file;
	public $relative;
	public $url;
	public $basename;
	public $migrations;

	protected $plugin_path;

	public function __construct( $plugin_file ) {
		$this->plugin_path = $plugin_file;

		$this->main_file  = $plugin_file;
		$this->absolute   = dirname( $plugin_file );
		$this->basename   = plugin_basename( $plugin_file );
		$this->url        = plugins_url( '', $plugin_file );
		$this->migrations = $this->absolute . '/migrations';
	}
}
