<?php

namespace WBCR\Factory_600\Entities;

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

/*
 * @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';
	}
}
