Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 238c64b

Browse files
committed
Tech Guidelines: factories vs new keyword
- added reference to DTO definition
1 parent 140d8b3 commit 238c64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/v2.2/coding-standards/technical-guidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class Config
101101
---
102102

103103
2.2.2. Factories SHOULD be used for object instantiation instead of `new` keyword. An object SHOULD be replaceable for testing or extensibility purposes.
104-
Exception: DTOs. There is no behavior in DTOs, so there is no reason for its replaceability.
104+
Exception: [DTOs](https://en.wikipedia.org/wiki/Data_transfer_object). There is no behavior in DTOs, so there is no reason for its replaceability.
105105
Tests can create real DTOs for stubs.
106106
Data interfaces, Exceptions and `Zend_Db_Expr` are examples of DTOs.
107107

0 commit comments

Comments
 (0)