Skip to content

InternalMethod

A method marked @internal is called from outside its package.

<?php
namespace Acme\Core;
class Registry {
/** @internal */
public function rebuild(): void {}
}
// In a different namespace:
(new \Acme\Core\Registry())->rebuild(); // @internal method accessed externally

Use only the public API; do not rely on internal implementation details.