An open API service indexing awesome lists of open source software.

https://github.com/autoframe/class-dependency

PHP class, interface and trait dependency static reflection all in one class
https://github.com/autoframe/class-dependency

Last synced: about 1 year ago
JSON representation

PHP class, interface and trait dependency static reflection all in one class

Awesome Lists containing this project

README

          

# Autoframe is a low level framework that is oriented on SOLID flexibility

[![Build Status](https://github.com/autoframe/class-dependency/workflows/PHPUnit-tests/badge.svg?branch=main)](https://github.com/autoframe/class-dependency/actions?query=branch:main)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
![Packagist Version](https://img.shields.io/packagist/v/autoframe/class-dependency?label=packagist%20stable)
[![Downloads](https://img.shields.io/packagist/dm/autoframe/class-dependency.svg)](https://packagist.org/packages/autoframe/class-dependency)

*Autoframe PHP dependency resolver for classes, interfaces and traits using static reflection and all in one class*

Namespace\Class:
- Autoframe\ClassDependency\AfrClassDependency

Static methods:
- public static function getClassInfo(mixed $obj_sFQCN): AfrClassDependency;
- public static function clearClassInfo(mixed $obj_sFQCN): bool;
- public static function isSkipped(mixed $obj_sFQCN): bool;
- public static function getDependencyInfo(): array;
- public static function clearDependencyInfo(): void;
- public static function getDebugFatalError(): array;
- public static function clearDebugFatalError(): void;
- public static function flush(): void;
- public static function setSkipClassInfo(array $aFQCN, bool $bMergeWithExisting = false): array;
- public static function setSkipNamespaceInfo(array $aNamespaces, bool $bMergeWithExisting = false): array;
- public static function getSkipClassInfo(): array;
- public static function getSkipNamespaceInfo(): array;

Instance methods:
- public function getType(): string;
- public function getAllDependencies(): array;
- public function getClassName(): string;
- public function __toString(): string;
- public function getParents(): array;
- public function getTraits(): array;
- public function getInterfaces(): array;
- public function isClass(): bool;
- public function isTrait(): bool;
- public function isInterface(): bool;
- public function isEnum(): bool;
- public function isAbstract(): bool;
- public function isInstantiable(): bool;
- public function isSingleton(): bool;
- public function doIDependOn($mClass): bool;

Instance methods are available using getClassInfo(className or object): AfrClassDependency