<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>boukanrisha</author_name>
  <author_url>https://blog.hatena.ne.jp/boukanrisha/</author_url>
  <blog_title>某管理者の表日記</blog_title>
  <blog_url>https://boukanrisha.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>しかし、PHPはリフレクション使わなくてもクラス名の文字列を変数に格納してそこからインスタンスが簡単に生成できる、って良いやら悪いやら。 まぁ、悪い面はコーディングのパターンでなんとでもなるので、使える物は最大限に使わせて貰いましょうと、言うことで、stateクラスのファクトリーで具象クラスを特定するために条件文と文字列連結でクラス名を組み立ててそこからインスタンスを生成する、というアレなコードが出来上がるわけですがｗ 「class_exists()」という、文字列で指定したクラス名のクラスが存在するかどうか判定する関数が組み込みで用意されている時点で推して知るべしって感じデスｗｗ state…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboukanrisha.hatenablog.com%2Fentry%2F20131216%2Fp1&quot; title=&quot; - 某管理者の表日記&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-12-16 00:00:01</published>
  <title></title>
  <type>rich</type>
  <url>https://boukanrisha.hatenablog.com/entry/20131216/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
