subject = $subject; $this->count = (int)$count; } /** * @param int $by */ public function increment($by = 1) { $this->count += (int)$by; } /** * @return Subject */ public function getSubject() { return $this->subject; } /** * @return int */ public function getCount() { return $this->count; } }