public function addRecipient($name, $email, $amount) {
    if (count($this->recipients) == self::LIMIT_RECIPIENTS) {
      // El servicio tiene un limite
      return;
    }
    $this->recipients[] = array(
      'name' => $name,
      'email' => $email,
      'amount' => $amount,
    );
  }
public function addRecipient($name, $email, $amount) {
    if (count($this->recipients) == self::LIMIT_RECIPIENTS) {
      // El servicio tiene un limite
      return;
    }
    $this->recipients[] = array(
      'name' => $name,
      'email' => $email,
      'amount' => $amount,
    );
  }
public function addRecipient ( $ name , $ email , $ amount ) { if ( count ( $ this -> recipients ) == self :: LIMIT_RECIPIENTS ) { // El servicio tiene un limite return ; } $ this -> recipients [ ] = array ( 'name' => $ name , 'email' => $ email , 'amount' => $ amount , ) ; }
Metodo que asigna a la variable recipientes un nuevo destinatario.
Metodo que asigna a la variable recipientes un nuevo destinatario .