Public entity properties in zend 2 documentation - is it good?
<p>I was writing app with zend 2 framework. I had not worked with it, some time ago done small app maybe with zend 1.</p>

<p>I see what is not usual to me - public properties. I thought this is bad. But zend is showing such examples:</p>

<pre><code>namespace Album\Model;

 class Album
 {
     public $id;
     public $artist;
     public $title;

     public function exchangeArray($data)
     {
         $this-&gt;id     = (!empty($data['id'])) ? $data['id'] : null;
         $this-&gt;artist = (!empty($data['artist'])) ? $data['artist'] : null;
         $this-&gt;title  = (!empty($data['title'])) ? $data['title'] : null;
     }
 }
</code></pre>

<p><a href="https://framework.zend.com/manual/2.3/en/user-guide/database-and-models.html" rel="nofollow">https://framework.zend.com/manual/2.3/en/user-guide/database-and-models.html</a></p>

<p>Is is good for this case? Why?</p>