MCPcopy Create free account
hub / github.com/VKCOM/kphp / add_virt_clone

Method add_virt_clone

compiler/data/class-data.cpp:110–131  ·  view source on GitHub ↗

* Generate and add `__virt_clone` method to class (or interface); method is dedicated for cloning interfaces * * For classes: * function __virt_clone() { return clone $this; } * * For interfaces: * / ** @return InterfaceName * / * function __virt_clone(); * * @return generated method */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

check_on_finishMethod · 0.80

Calls 3

replace_backslashesFunction · 0.85
add_instance_methodMethod · 0.80
LocationClass · 0.50

Tested by

no test coverage detected