for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\ModelCleanup;
use Illuminate\Queue\SerializesModels;
class ModelCleanedEvent
{
/**
* Holds the model class name.
* @var string
*/
public $modelName;
* Holds the number of deleted records for the model.
* @var int
public $numberOfDeletedRecords;
* Create a new event instance.
*
* @param string $modelName
* @param int $numberOfDeletedRecords
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct(string $modelName, int $numberOfDeletedRecords)
$this->modelName = $modelName;
$this->numberOfDeletedRecords = $numberOfDeletedRecords;
}
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.