php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #33575 OOP5 "Patterns": Example not a Factory Method
Submitted: 2005-07-05 17:55 UTC Modified: 2005-11-18 12:14 UTC
From: nick dot telford at ntlworld dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
 [2005-07-05 17:55 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-19 14:13 UTC] sniper@php.net
Feel free to fix it. FFTFI. :)

 [2005-11-18 12:14 UTC] nlopess@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=e438f7b8da148c3e8e6fb537b0b802e2da3fe07f
Log: fix #33575: the example is a Parameterized Factory
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 03:01:32 2025 UTC