CodeExplorer includeComputedProperties example
final protected function view(?string
$view, array
$data =
[]): string
{ $properties =
$this->
getPublicProperties();
$properties =
$this->
includeComputedProperties($properties);
$properties =
array_merge($properties,
$data);
$view =
(string) $view;
if ($view === ''
) { $viewName =
decamelize(class_basename(static::
class));
$directory =
dirname((new ReflectionClass($this))->
getFileName()) . DIRECTORY_SEPARATOR;
$possibleView1 =
$directory .
substr($viewName, 0,
strrpos($viewName, '_cell'
)) . '.php';
$possibleView2 =
$directory .
$viewName . '.php';
}