<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>okashoi</author_name>
  <author_url>https://blog.hatena.ne.jp/okashoi/</author_url>
  <blog_title>s平面の左側</blog_title>
  <blog_url>https://blog.okashoi.net/</blog_url>
  <categories>
    <anon>技術／PHP</anon>
  </categories>
  <description>抽象クラスが存在し、そこに具象メソッドが実装されている場合を考えます。 &lt;?php namespace MyApp; abstract class Person { protected $name; public function __construct(string $name) { $this-&gt;name = $name; } public function introduce(): string { return 'I\'m ' . $this-&gt;name . '.'; } } この場合 introduce() メソッドは場合は次のようにして書けます*1。 &lt;?php namespace…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.okashoi.net%2Fentry%2F2019%2F06%2F19%2F012207&quot; title=&quot;PHP において抽象クラスのテストを書く - s平面の左側&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.user.blog.st-hatena.com/default_entry_og_image/122447865/1514246450530227</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-06-19 01:22:07</published>
  <title>PHP において抽象クラスのテストを書く</title>
  <type>rich</type>
  <url>https://blog.okashoi.net/entry/2019/06/19/012207</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
