<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sakiot</author_name>
  <author_url>https://blog.hatena.ne.jp/sakiot/</author_url>
  <blog_title>BASEプロダクトチームブログ</blog_title>
  <blog_url>https://devblog.thebase.in/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>こんにちは！ バックエンドエンジニアの高町咲衣です！ この記事では、PHPでDDD（ドメイン駆動設計）を扱う際に気になる「値オブジェクトを更新＝作り直した時のメモリ周りの挙動」について調査した結果をまとめています。 値オブジェクトは不変である DDDの文脈における値オブジェクト（ValueObject）の特徴の一つとして、不変（immutable）であることが挙げられます。 値オブジェクトは「値を表現する」オブジェクトであり、例えばプリミティブな値であるint、stringなどと同じように取り扱うべきだとされています。 // プリミティブな値を用いた、ごく一般的な感覚のコード例 $number…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevblog.thebase.in%2Fentry%2F2023%2F04%2F05%2F110000&quot; title=&quot;【PHP】DDDにおける値オブジェクトを変更したい時のメモリ周りについて調べた - BASEプロダクトチームブログ&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>2023-04-05 11:00:00</published>
  <title>【PHP】DDDにおける値オブジェクトを変更したい時のメモリ周りについて調べた</title>
  <type>rich</type>
  <url>https://devblog.thebase.in/entry/2023/04/05/110000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
