api-8.x-1.x-dev/tests/files/sample_namespace/TraitF.php
tests/files/sample_namespace/TraitF.php
<?php
/**
* @file Contains \api\test1\TraitF.
*/
namespace api\test1;
/**
* A sample trait.
*
* Longer description of the trait.
*/
trait TraitF {
/**
* Property to inherit.
*/
public $fvar = 'hello';
/**
* Method to inherit.
*/
protected function xyz() {
return 7;
}
/**
* Conflicting method to inherit.
*/
protected function def() {
return 'Value from TraitF';
}
}
