<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rsky</author_name>
  <author_url>https://blog.hatena.ne.jp/rsky/</author_url>
  <blog_title>讃容日記</blog_title>
  <blog_url>https://blog.r-sky.jp/</blog_url>
  <categories>
    <anon>regular</anon>
    <anon>PHP</anon>
    <anon>ネタ</anon>
  </categories>
  <description>2012年4月1日にリリースされたPHP 5.4.1では、マイナーバージョンアップにも関わらず言語仕様が拡張されるという、PHPクォリティ全開の変更があったので紹介しよう。 実体化時ミックスイン (Mix-in instantiation) クラスをインスタンス化する際にuse文でトレイトを追加できるようになった。トレイトは実行時に解決されるので、クラス宣言より後にトレイトを宣言することも可能。 例1 &lt;?php class JoJo {} trait HermitPurple { public function sayStand() { echo '隠者の紫'; } } trait Star…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.r-sky.jp%2Fentry%2F2012%2F04%2F01%2F043100&quot; title=&quot;PHP 5.4.1の新機能: Scalaライクなミックスイン - 讃容日記&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>2012-04-01 04:31:00</published>
  <title>PHP 5.4.1の新機能: Scalaライクなミックスイン</title>
  <type>rich</type>
  <url>https://blog.r-sky.jp/entry/2012/04/01/043100</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
