- var_dump: documentation ( source)
<?php
class Foo {
use FooTrait;
protected function getPluginDependencies() {
var_dump('class');
}
public function test() {
$this->getPluginDependencies();
}
}
trait FooTrait {
protected function getPluginDependencies() {
var_dump('trait');
}
}
$foo = new Foo();
$foo->test();