<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shimooka</author_name>
  <author_url>https://blog.hatena.ne.jp/shimooka/</author_url>
  <blog_title>Do You PHP はてブロ</blog_title>
  <blog_url>https://shimooka.hateblo.jp/</blog_url>
  <categories>
    <anon>doyouphp</anon>
    <anon>phpdp</anon>
  </categories>
  <description>このエントリは、Do You PHP?(www.doyouphp.jp)で公開していたコンテンツを移行/加筆/修正したものです。公開の経緯はこちらをどうぞ。目次はこちらです。サンプルコードを手直ししたものをgithubに上げてありますのでそちらもどうぞ。 GoF本における分類 生成＋クラス はじめに ここでは、Factory Methodパターンについて説明します。 「factory」とはもちろん「工場」という意味です。パターン名に使われているほどですから、もちろんそれなりの理由があります。工場とは一般的に何かを製造する施設ですよね…ここまで言うと、もうお気づきかもしれません。 では、なぜ「工…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshimooka.hateblo.jp%2Fentry%2F20141215%2F1418620242&quot; title=&quot;PHPによるデザインパターン入門 - Factory Method〜生成処理と使用処理を分離する - Do You PHP はてブロ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/shimooka/20141208/20141208182623.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-12-15 14:10:42</published>
  <title>PHPによるデザインパターン入門 - Factory Method〜生成処理と使用処理を分離する</title>
  <type>rich</type>
  <url>https://shimooka.hateblo.jp/entry/20141215/1418620242</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
