Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
ComponentFile Class Reference

Public Member Functions

 __construct ($componentType, $componentName, $fullPath)
 
 getComponentType ()
 
 getComponentName ()
 
 getFullPath ()
 

Detailed Description

Value-object for files found in components

Definition at line 11 of file ComponentFile.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $componentType,
  $componentName,
  $fullPath 
)

Constructor

Parameters
string$componentType
string$componentName
string$fullPath

Definition at line 41 of file ComponentFile.php.

42  {
43  $this->componentType = $componentType;
44  $this->componentName = $componentName;
45  $this->path = $fullPath;
46  }

Member Function Documentation

◆ getComponentName()

getComponentName ( )

Get component name

Returns
string

Definition at line 63 of file ComponentFile.php.

64  {
65  return $this->componentName;
66  }

◆ getComponentType()

getComponentType ( )

Get component type

Returns
string

Definition at line 53 of file ComponentFile.php.

54  {
55  return $this->componentType;
56  }

◆ getFullPath()

getFullPath ( )

Get full path to the component

Returns
string

Definition at line 73 of file ComponentFile.php.

74  {
75  return $this->path;
76  }

The documentation for this class was generated from the following file: