public function addImage($url) { if (count($this->images) < 4) { $this->images[] = $url; } return $this; }