Public method declaration index
Declarations from the reviewed source snapshot. This index complements semantic guides; it does not document every exception/lifecycle condition or promise that every class is a stable public API. Source links are pinned to a base revision; file hashes are retained in the review record. Default string literals are reproduced verbatim from PHP, including their original language.
Triangle\Annotation\Middleware
Section titled “Triangle\Annotation\Middleware”public function __construct(...$middlewares)— sourcepublic function getMiddlewares(): array— source
Triangle\Engine\App
Section titled “Triangle\Engine\App”public function __construct( string $requestClass, Logger $logger, string $basePath = null, string $appPath = null, string $configPath = null, string $publicPath = null, string $runtimePath = null, )— sourcepublic function onServerStart(Server &$server): void— sourcepublic static function connection(): TcpConnection|null— sourcepublic static function request(): Request|null— sourcepublic static function server(): ?Server— sourcepublic static function execPhpFile(string $file): false|string— source
Triangle\Engine\Autoload
Section titled “Triangle\Engine\Autoload”public static function start(?string $arg = null, ?Server $server = null): void— sourcepublic static function startCLI(?string $arg = null): void— sourcepublic static function startServer(?Server $server = null): void— sourcepublic static function isManageCommand(?string $arg = ''): bool— sourcepublic static function files(): void— source
Triangle\Engine\AutoloadInterface
Section titled “Triangle\Engine\AutoloadInterface”public static function start(?string $arg = null, ?Server $server = null): void— source
Triangle\Engine\Bootstrap
Section titled “Triangle\Engine\Bootstrap”public static function start(?Server $server = null): void— sourcepublic static function load(array $classes, ?Server $server = null, bool $ignore = false): void— source
Triangle\Engine\BootstrapInterface
Section titled “Triangle\Engine\BootstrapInterface”public static function start(?Server $server): void— source
Triangle\Engine\Config
Section titled “Triangle\Engine\Config”public static function isLoaded(): bool— sourcepublic static function loadAll(array $excludes = []): void— sourcepublic static function reloadAll(array $excludes = []): void— sourcepublic static function load(string $configPath, array $excludeFile = [], string $key = null): void— sourcepublic static function loadFromDir(string $configPath, array $excludeFile = []): array— sourcepublic static function clear(): void— sourcepublic static function get(string $key = null, mixed $default = null)— sourcepublic static function set(array $config): void— source
Triangle\Engine\Container
Section titled “Triangle\Engine\Container”public function get(string $id): mixed— sourcepublic function has(string $id): bool— sourcepublic function make(string $name, array $constructor = []): mixed— sourcepublic function addDefinitions(array $definitions): Container— source
Triangle\Engine\Context
Section titled “Triangle\Engine\Context”public static function get(?string $key = null): mixed— sourcepublic static function init(): void— sourcepublic static function set(string $key, mixed $value): void— sourcepublic static function delete(string $key): void— sourcepublic static function has(string $key): bool— sourcepublic static function onDestroy($callback): void— sourcepublic static function destroy(): void— source
Triangle\Engine\Environment
Section titled “Triangle\Engine\Environment”public static function load(string|array $path, string|array $file = '.env'): void— sourcepublic static function get(string $key, mixed $default = null): mixed— sourcepublic static function getOrFail(string $key): mixed— source
Triangle\Exception\BusinessException
Section titled “Triangle\Exception\BusinessException”public function render(Request $request, bool $debug = null): ?Response— sourcepublic function data(?array $data = null): array|static— sourcepublic function debug(?bool $value = null): bool|static— source
Triangle\Exception\ExceptionHandler
Section titled “Triangle\Exception\ExceptionHandler”public function __construct(protected ?LoggerInterface $logger = null, protected bool $debug = false)— sourcepublic function report(Throwable $throwable): void— sourcepublic function render(Request $request, Throwable $throwable): Response— source
Triangle\Exception\ExceptionHandlerInterface
Section titled “Triangle\Exception\ExceptionHandlerInterface”public function report(Throwable $throwable): void— sourcepublic function render(Request $request, Throwable $throwable): Response— source
Triangle\Exception\InputTypeException
Section titled “Triangle\Exception\InputTypeException”public function __construct( string $message = 'Параметр ":parameter" должен быть :exceptType, а получен :actualType', int $code = 400, Throwable $throwable = null )— source
Triangle\Exception\InputValueException
Section titled “Triangle\Exception\InputValueException”public function __construct(string $message = 'Input :parameter is invalid.', int $code = 400, ?Throwable $throwable = null)— source
Triangle\Exception\MissingInputException
Section titled “Triangle\Exception\MissingInputException”public function __construct( string $message = 'Missing input parameter :parameter', int $code = 400, Throwable $throwable = null )— sourcepublic function render(Request $request, bool $debug = null): ?Response— source
Triangle\Exception\PageNotFoundException
Section titled “Triangle\Exception\PageNotFoundException”public function __construct( string $message = '404 Not Found', int $code = 404, Throwable $throwable = null )— sourcepublic function render(Request $request, bool $debug = null): ?Response— source
Triangle\Engine\File
Section titled “Triangle\Engine\File”public function __construct(string $fileName, protected ?string $uploadName, protected ?string $uploadMimeType, protected ?int $uploadErrorCode)— sourcepublic function getUploadName(): ?string— sourcepublic function getUploadMimeType(): ?string— sourcepublic function getUploadExtension(): string— sourcepublic function getUploadErrorCode(): ?int— sourcepublic function isValid(): bool— sourcepublic function move(string $destination): File— source
Triangle\Engine\Install
Section titled “Triangle\Engine\Install”Triangle\Engine\InstallInterface
Section titled “Triangle\Engine\InstallInterface”public static function install(): void— sourcepublic static function update(): void— sourcepublic static function uninstall(): void— source
Triangle\Engine\Log\MongoDBHandler
Section titled “Triangle\Engine\Log\MongoDBHandler”public function __construct($mongodb, string $database, string $collection, int $level = Logger::DEBUG, bool $bubble = true)— source
Triangle\Engine\Path
Section titled “Triangle\Engine\Path”public function __construct( string $basePath = null, string $configPath = null, string $appPath = null, string $publicPath = null, string $runtimePath = null, )— sourcepublic static function runPath(string $path = ''): string— sourcepublic static function basePath(false|string $path = ''): ?string— sourcepublic static function appPath(string $path = ''): ?string— sourcepublic static function controllerPath(string $path = ''): ?string— sourcepublic static function modelPath(string $path = ''): ?string— sourcepublic static function viewPath(string $path = ''): ?string— sourcepublic static function configPath(string $path = ''): ?string— sourcepublic static function publicPath(string $path = ''): ?string— sourcepublic static function runtimePath(string $path = ''): ?string— source
Triangle\Engine\Plugin
Section titled “Triangle\Engine\Plugin”public static function app_reduce($callback): void— sourcepublic static function app_by_path(string $path): ?string— sourcepublic static function app_by_class(string $class): ?string— sourcepublic static function plugin_reduce($callback): void— sourcepublic static function install(mixed $event): void— sourcepublic static function update(mixed $event): void— sourcepublic static function uninstall(mixed $event): void— source
Triangle\Engine\Request
Section titled “Triangle\Engine\Request”public function file(?string $name = null): array|File|null— source
Triangle\Engine\Response
Section titled “Triangle\Engine\Response”public function __construct( int $status = 200, array $headers = [], string $body = '' )— sourcepublic function exception(Throwable $throwable = null): ?Throwable— sourcepublic function file(string $file): self— sourcepublic function download(string $file, string $downloadName = ''): self— source
Triangle\Services\Monitor
Section titled “Triangle\Services\Monitor”public static function pause(): void— sourcepublic static function resume(): void— sourcepublic static function isPaused(): bool— sourcepublic function __construct($monitorDir, protected $extensions, array $options = [])— sourcepublic function checkFilesChange($monitorDir): bool— sourcepublic function checkAllFilesChange(): bool— sourcepublic function checkMemory($memoryLimit): void— source
support\App
Section titled “support\App”public static function run(): void— source
support\Cache
Section titled “support\Cache”public static function __callStatic(string $name, array $arguments)— sourcepublic static function store(?string $name = null): Psr16Cache— source
support\Collection
Section titled “support\Collection”public function __construct(mixed $data = null)— sourcepublic function toArray(): array— sourcepublic function get(string|int $property): mixed— sourcepublic function set(string|int $property, mixed $value): void— sourcepublic function filter(string|int $property): Collection— sourcepublic function exists(string|int $property): bool— sourcepublic function isEmpty(): bool— sourcepublic function count(): int— sourcepublic function keys(): array— sourcepublic function values(): array— source
support\Container
Section titled “support\Container”public static function __callStatic(string $name, array $arguments)— sourcepublic static function instance(?string $plugin = '')— source
support\Log
Section titled “support\Log”public static function __callStatic(string $name, array $arguments)— sourcepublic static function channel(string $name = 'default', array $localConfig = []): Logger— source
support\Redis
Section titled “support\Redis”public static function __callStatic(string $name, array $arguments)— sourcepublic static function connection(string $name = 'default'): Connection— sourcepublic static function instance(): ?Manager— source