/home/kueuepay/public_html/vendor/maatwebsite/excel/src/Events/Event.php
<?php

namespace Maatwebsite\Excel\Events;

/**
 * @internal
 */
abstract class Event
{
    /**
     * @var object
     */
    protected $concernable;

    /**
     * @param  object  $concernable
     */
    public function __construct($concernable)
    {
        $this->concernable = $concernable;
    }

    /**
     * @return object
     */
    public function getConcernable()
    {
        return $this->concernable;
    }

    /**
     * @return mixed
     */
    abstract public function getDelegate();

    /**
     * @param  string  $concern
     * @return bool
     */
    public function appliesToConcern(string $concern): bool
    {
        return $this->getConcernable() instanceof $concern;
    }
}
Best Practice

Best Practices

To ensure a smooth integration process and optimal performance, follow these best practices:

  1. Use secure HTTPS connections for all API requests.
  2. Implement robust error handling to handle potential issues gracefully.
  3. Regularly update your integration to stay current with any API changes or enhancements.