- class_alias: documentation ( source)
<?php
class CacheabilityMetadata {}
class_alias('CacheabilityMetadata', 'CacheableMetadata');
class SomethingElse {}
function f(CacheabilityMetadata $m) {}
function g(CacheableMetadata $m) {}
f(new CacheabilityMetadata);
f(new CacheableMetadata);
g(new CacheabilityMetadata);
g(new CacheableMetadata);
f(new SomethingElse);