You are here

public function RegistrationInterface::setRegistrantQty in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 3.x src/Entity/RegistrationInterface.php \Drupal\rng\Entity\RegistrationInterface::setRegistrantQty()

Set the RegistrantQty field.

This is the maximum number of registrants allowed to be attached to this registration, or 0 if unlimited.

Parameters

int $qty: Number of registrants for this registration, or 0 for unlimited.

Return value

\Drupal\rng\Entity\RegistrationInterface Returns registration for chaining.

Throws

\Drupal\rng\Exception\MaxRegistrantsExceededException

1 method overrides RegistrationInterface::setRegistrantQty()
Registration::setRegistrantQty in src/Entity/Registration.php
@inheritDoc

File

src/Entity/RegistrationInterface.php, line 165

Class

RegistrationInterface
Provides an interface defining a Registration entity.

Namespace

Drupal\rng\Entity

Code

public function setRegistrantQty($qty);