#33575 [Opn->Asn]: OOP5 "Patterns": Example not a Factory Method

From: Date: Mon, 19 Sep 2005 12:13:15 +0000
Subject: #33575 [Opn->Asn]: OOP5 "Patterns": Example not a Factory Method
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969370186@lists.php.net to get a copy of this message
ID: 33575 Updated by: sniper@php.net Reported By: nick dot telford at ntlworld dot com -Status: Open +Status: Assigned Bug Type: Documentation problem Operating System: N/A PHP Version: Irrelevant Assigned To: aidan New Comment: Feel free to fix it. FFTFI. :) Previous Comments: ------------------------------------------------------------------------ [2005-07-05 17:55:32] nick dot telford at ntlworld dot com Description: ------------ http://www.php.net/manual/en/language.oop5.patterns.php The first description and example identify the example to be a Factory Method, this is not strictly true, it's a Parameterized Factory Method (sometimes referred to simply as "Factory"), and is a slight derivation of the Factory Method pattern. A pure Factory Method doesn't use parameters to select the class(es) to instanciate, it uses multiple methods and acts slightly differently. Ultra low priority bug report, I know i'm being pedantic, but I felt it was worth reporting anyway. Nicholas Telford ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33575&edit=1

« previous php.doc (#969370186) next »