public function execute() { $currentCount = $this->entity->getCount(); if ($currentCount < $this->count) { $this->entity->setCount($this->count); } }