class DummyFile in Realistic Dummy Content 8.2
Same name and namespace in other branches
- 7.2 api/src/test/includes/RealisticDummyContentValueFieldTest.php \Drupal\realistic_dummy_content_api\includes\DummyFile
Dummy file, used to test how fields manage files.
@group realistic_dummy_content
Hierarchy
- class \Drupal\realistic_dummy_content_api\includes\DummyFile
Expanded class hierarchy of DummyFile
File
- api/
src/ test/ includes/ RealisticDummyContentValueFieldTest.php, line 14
Namespace
Drupal\realistic_dummy_content_api\includesView source
class DummyFile {
private $value;
/**
* Constructor.
*
* @param mixed $value
* The value to return.
*/
public function __construct($value) {
$this->value = $value;
}
/**
* Returns the dummy value.
*
* @return mixed
* The value we used when creating this object.
*/
public function value() {
return $this->value;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DummyFile:: |
private | property | ||
DummyFile:: |
public | function | Returns the dummy value. | |
DummyFile:: |
public | function | Constructor. |