Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Context.php
Go to the documentation of this file.
1 <?php
8 
10 
14 class Context implements Asset\ContextInterface
15 {
19  private $baseUrl;
20 
24  private $baseDir;
25 
29  private $path;
30 
36  public function __construct($baseUrl, $baseDirType, $contextPath)
37  {
38  $this->baseUrl = $baseUrl;
39  $this->baseDir = $baseDirType;
40  $this->path = $contextPath;
41  }
42 
46  public function getPath()
47  {
48  return $this->path;
49  }
50 
54  public function getBaseUrl()
55  {
56  return $this->baseUrl;
57  }
58 
64  public function getBaseDirType()
65  {
66  return $this->baseDir;
67  }
68 }
__construct($baseUrl, $baseDirType, $contextPath)
Definition: Context.php:36