Skip to content

Commit 49a21e7

Browse files
committed
Updated to PHP 8.2
1 parent e0135bf commit 49a21e7

File tree

233 files changed

+6559
-2165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

233 files changed

+6559
-2165
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
structural/Adapter/Config.php
21
vendor
32
.idea
43
.env

README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This project is set of simple examples of usage of different design patterns in a real world scenarios. Each one have a short description and guideline:
44
- [Factory Method](https://medium.com/@j.kapuscik2/getting-started-with-design-patterns-in-php-4d451ccdfb71)
5-
- [Creational Patterns](https://medium.com/@j.kapuscik2/creational-design-patterns-in-php-db365d3245ce)
5+
- [src/Creational Patterns](https://medium.com/@j.kapuscik2/src/Creational-design-patterns-in-php-db365d3245ce)
66
- [Observer](https://medium.com/@j.kapuscik2/observer-pattern-in-php-2ba240f89fb2)
77
- [Iterator](https://medium.com/@j.kapuscik2/iterator-pattern-in-php-b7624f6bdbcf)
88
- [State & Strategy](https://medium.com/@j.kapuscik2/state-strategy-design-patterns-by-example-f57ebd7b6211)
@@ -25,31 +25,31 @@ This project is set of simple examples of usage of different design patterns in
2525
### Following patterns have so far been described:
2626

2727
#### Creational:
28-
1. [Factory Method](/creational/FactoryMethod)
29-
2. [Abstract Factory](/creational/AbstractFactory)
30-
3. [Singleton](/creational/Singleton)
31-
4. [Builder](/creational/Builder)
32-
5. [Prototype](/creational/Prototype)
28+
1. [Factory Method](/src/Creational/FactoryMethod)
29+
2. [Abstract Factory](/src/Creational/AbstractFactory)
30+
3. [Singleton](/src/Creational/Singleton)
31+
4. [Builder](/src/Creational/Builder)
32+
5. [Prototype](/src/Creational/Prototype)
3333

3434
#### Behavioral:
35-
1. [Iterator](/behavioral/Iterator)
36-
2. [Observer](/behavioral/Observer)
37-
3. [State](/behavioral/State)
38-
4. [Strategy](/behavioral/Strategy)
39-
5. [Template Method](/behavioral/TemplateMethod)
40-
6. [Chain of Responsibility](/behavioral/ChainOfResponsibility)
41-
7. [Visitor](/behavioral/Visitor)
42-
8. [Command](/behavioral/Command)
43-
9. [Null Object](/behavioral/NullObject)
44-
10. [Specification](/behavioral/Specification)
35+
1. [Iterator](src/Behavioral/Iterator)
36+
2. [Observer](src/Behavioral/Observer)
37+
3. [State](src/Behavioral/State)
38+
4. [Strategy](src/Behavioral/Strategy)
39+
5. [Template Method](src/Behavioral/TemplateMethod)
40+
6. [Chain of Responsibility](src/Behavioral/ChainOfResponsibility)
41+
7. [Visitor](src/Behavioral/Visitor)
42+
8. [Command](src/Behavioral/Command)
43+
9. [Null Object](src/Behavioral/NullObject)
44+
10. [Specification](src/Behavioral/Specification)
4545

4646
#### Structural:
47-
1. [Adapter](/structural/Adapter)
48-
2. [Decorator](/structural/Decorator)
49-
3. [Proxy](/structural/Proxy)
50-
4. [Dependency Injection](/structural/DependencyInjection)
51-
5. [Facade](/structural/Facade)
52-
6. [Composite](/structural/Composite)
53-
7. [Bridge](/structural/Bridge)
54-
8. [Flyweight](/structural/Flyweight)
55-
9. [Fluent Interface](/structural/FluentInterface)
47+
1. [Adapter](src/Structural/Adapter)
48+
2. [Decorator](src/Structural/Decorator)
49+
3. [Proxy](src/Structural/Proxy)
50+
4. [Dependency Injection](src/Structural/DependencyInjection)
51+
5. [Facade](src/Structural/Facade)
52+
6. [Composite](src/Structural/Composite)
53+
7. [Bridge](src/Structural/Bridge)
54+
8. [Flyweight](src/Structural/Flyweight)
55+
9. [Fluent Interface](src/Structural/FluentInterface)

behavioral/ChainOfResponsibility/ApiMiddleware.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

behavioral/ChainOfResponsibility/Middleware.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

behavioral/ChainOfResponsibility/MiddlewareError.php

Lines changed: 0 additions & 6 deletions
This file was deleted.

behavioral/ChainOfResponsibility/Request.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

behavioral/ChainOfResponsibility/Response.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

behavioral/ChainOfResponsibility/index.php

Lines changed: 0 additions & 8 deletions
This file was deleted.

behavioral/Command/Command.php

Lines changed: 0 additions & 8 deletions
This file was deleted.

behavioral/Command/CreateListing.php

Lines changed: 0 additions & 46 deletions
This file was deleted.

behavioral/Command/DeleteListing.php

Lines changed: 0 additions & 20 deletions
This file was deleted.

behavioral/Iterator/CompanyEmployeeTeam.php

Lines changed: 0 additions & 44 deletions
This file was deleted.

behavioral/Iterator/Employee.php

Lines changed: 0 additions & 14 deletions
This file was deleted.

behavioral/Iterator/EmployeeTeamIterator.php

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)