class ScaffoldResult in Drupal 8
Same name and namespace in other branches
- 9 composer/Plugin/Scaffold/Operations/ScaffoldResult.php \Drupal\Composer\Plugin\Scaffold\Operations\ScaffoldResult
- 10 composer/Plugin/Scaffold/Operations/ScaffoldResult.php \Drupal\Composer\Plugin\Scaffold\Operations\ScaffoldResult
Record the result of a scaffold operation.
@internal
Hierarchy
- class \Drupal\Composer\Plugin\Scaffold\Operations\ScaffoldResult
Expanded class hierarchy of ScaffoldResult
1 file declares its use of ScaffoldResult
- GenerateAutoloadReferenceFile.php in composer/
Plugin/ Scaffold/ GenerateAutoloadReferenceFile.php
File
- composer/
Plugin/ Scaffold/ Operations/ ScaffoldResult.php, line 12
Namespace
Drupal\Composer\Plugin\Scaffold\OperationsView source
class ScaffoldResult {
/**
* The path to the scaffold file that was processed.
*
* @var \Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath
*/
protected $destination;
/**
* Indicates if this scaffold file is managed by the scaffold command.
*
* @var bool
*/
protected $managed;
/**
* ScaffoldResult constructor.
*
* @param \Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath $destination
* The path to the scaffold file that was processed.
* @param bool $isManaged
* (optional) Whether this result is managed. Defaults to FALSE.
*/
public function __construct(ScaffoldFilePath $destination, $isManaged = FALSE) {
$this->destination = $destination;
$this->managed = $isManaged;
}
/**
* Determines whether this scaffold file is managed.
*
* @return bool
* TRUE if this scaffold file is managed, FALSE if not.
*/
public function isManaged() {
return $this->managed;
}
/**
* Gets the destination scaffold file that this result refers to.
*
* @return \Drupal\Composer\Plugin\Scaffold\ScaffoldFilePath
* The destination path for the scaffold result.
*/
public function destination() {
return $this->destination;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ScaffoldResult:: |
protected | property | The path to the scaffold file that was processed. | |
ScaffoldResult:: |
protected | property | Indicates if this scaffold file is managed by the scaffold command. | |
ScaffoldResult:: |
public | function | Gets the destination scaffold file that this result refers to. | |
ScaffoldResult:: |
public | function | Determines whether this scaffold file is managed. | |
ScaffoldResult:: |
public | function | ScaffoldResult constructor. |