27 lines
442 B
PHP
27 lines
442 B
PHP
<?php
|
|
|
|
namespace Maatwebsite\Excel\Events;
|
|
|
|
abstract class Event
|
|
{
|
|
/**
|
|
* @return object
|
|
*/
|
|
abstract public function getConcernable();
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
abstract public function getDelegate();
|
|
|
|
/**
|
|
* @param string $concern
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function appliesToConcern(string $concern): bool
|
|
{
|
|
return $this->getConcernable() instanceof $concern;
|
|
}
|
|
}
|