<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>keynodes</author_name>
  <author_url>https://blog.hatena.ne.jp/keynodes/</author_url>
  <blog_title>keynodesの日記</blog_title>
  <blog_url>https://keynodes.hatenadiary.org/</blog_url>
  <categories>
    <anon>デザインパターン</anon>
    <anon>GoF</anon>
  </categories>
  <description>Adapter パターンとは？ Wikipediaによると Adapter パターンを用いると、既存のクラスに対して修正を加えることなく、インタフェースを変更することができる。Adapter パターンを実現するための手法として継承を利用した手法と委譲を利用した手法が存在する。 とある。 Adapter パターンを適用した場合のメリット 既存のコードを修正せずに再利用できる 利用側はアダプタの向こう側にある実装を知る必要が無い 異なるAPIを結びつけるだけでなく、公開するAPIを制限することも可能 protectedがついている非公開メソッドも利用できる 適用例 Wikipediaで紹介されてい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkeynodes.hatenadiary.org%2Fentry%2F20120813%2Fgof_adapter&quot; title=&quot;PHPでGoFデザインパターン 03 Adapter - keynodesの日記&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/k/keynodes/20120814/20120814002908.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-08-13 00:00:00</published>
  <title>PHPでGoFデザインパターン 03 Adapter</title>
  <type>rich</type>
  <url>https://keynodes.hatenadiary.org/entry/20120813/gof_adapter</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
