Slide 19
Slide 19 text
without encapsulation,
changes propagate
$article = [
'title' => "Object Reorientation",
'body' => "Encapsulate all the things",
'author' => "@mathiasverraes",
'published' => false,
];
$publishedArticle = publish($article, 10);
$publishedArticle = [
'title' => "Object Reorientation",
'body' => "Encapsulate all the things",
'author' => "@mathiasverraes",
'published' => false,
];