<?php

namespace Example;

class Parent_ {
	public function whoAmI(): array
	{
		return [__CLASS__, self::class, static::class];
	}
}

class Child extends Parent_ {}

$parent = new Parent_();
$child = new Child();

var_dump($parent->whoAmI(), $child->whoAmI());