src/Entity/Profile/Confirmation/ModerationRequest.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Profile\Confirmation;
  3. use App\Entity\Profile\Profile;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity]
  6. class ModerationRequest extends ConfirmationRequest
  7. {
  8.     public function __construct(Profile $profile)
  9.     {
  10.         parent::__construct($profile);
  11.         if ($this->status === self::STATUS_WAITING && $profile->hasFilesInProcess()) {
  12.             $this->status self::STATUS_PROCESSING;
  13.         }
  14.     }
  15. }