<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shkn</author_name>
  <author_url>https://blog.hatena.ne.jp/shkn/</author_url>
  <blog_title>技術メモなど</blog_title>
  <blog_url>https://shkn.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>SOLID原則</anon>
  </categories>
  <description>開放/閉鎖原則(OCP：The Open-Closed Principle)とは、オープン・クローズドの原則とも呼ばれる、オブジェクト指向設計の原則のひとつです。 単一責任の原則と同じく、SOLID原則にまとめられています。 ソフトウェアの構成要素は、拡張に対して開いていて、修正に対し閉じていなければならない。 本稿では、PHPのソースコードを用いながら、この原則（以下OCP）が意味するところについて考えます。 「開いている」「閉じている」とは 拡張に対して開かれている(Open) あるモジュールが拡張可能である場合、そのモジュールは拡張に対して開かれている（Open）と言います。 修正に対し…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshkn.hatenablog.com%2Fentry%2F2019%2F04%2F07%2F235558&quot; title=&quot;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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-04-07 23:55:58</published>
  <title>PHPで考える開放閉鎖原則</title>
  <type>rich</type>
  <url>https://shkn.hatenablog.com/entry/2019/04/07/235558</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
