Can trait precedence rules be used on properties? My initial research reveals nothing and tests have yielded no....
trait ReuseThis{
public $Dependency_Property;
public function mutateProperty(){
//...long method
}
}
trait privatePropInstead{
private $Dependency_Property;
}
class precedence_test{
//would like to reuse long methods of ReuseThis, but with private properties
use ReuseThis,privatePropertyInstead{
//all of these fail
//privatePropInstead->Dependency_Property insteadof ReuseThis;
//privatePropInstead::$Dependency_Property insteadof ReuseThis;
//privatePropInstead::Dependency_Property insteadof ReuseThis;
}
}