https://github.com/autoframe/design-patterns
PHP design patterns used in Autoframe
https://github.com/autoframe/design-patterns
Last synced: about 1 year ago
JSON representation
PHP design patterns used in Autoframe
- Host: GitHub
- URL: https://github.com/autoframe/design-patterns
- Owner: autoframe
- License: mit
- Created: 2023-06-04T18:10:44.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-04T13:17:38.000Z (over 2 years ago)
- Last Synced: 2025-04-21T08:20:23.381Z (about 1 year ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Autoframe is a low level framework that is oriented on SOLID flexibility
[](https://github.com/autoframe/design-patterns/actions?query=branch:main)
[](https://opensource.org/licenses/MIT)

[](https://packagist.org/packages/autoframe/design-patterns)
*PHP design patterns*
### Singleton
- Namespace Autoframe\DesignPatterns\Singleton
- abstract class AfrSingletonAbstractClass
- implements AfrSingletonInterface
-
- AfrSingletonTrait provides interface implementation
- Methods:
- final public getInstance: self
- public hasInstance: bool
- final protected __construct: self
- final public __wakeup: @throws AfrException
- final public __clone: @throws AfrException
### Array Access Singleton object instance
- Namespace Autoframe\DesignPatterns\SingletonArray
- abstract class AfrSingletonArrAbstractClass
- implements AfrSingletonInterface, ArrayAccess, Iterator, Countable
- use AfrObjectArrayAccessTrait
### Array Access object instance
- Namespace Autoframe\DesignPatterns\ArrayAccess
- class AfrObjectArrayAccessClass
- implements ArrayAccess, Iterator, Countable
- AfrObjectArrayAccessTrait implements ArrayAccess, Iterator, Countable