for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace RichanFongdasen\Varnishable\Events;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Queue\SerializesModels;
class ModelHasUpdated
{
use SerializesModels;
/**
* Eloquent model object.
*
* @var \Illuminate\Database\Eloquent\Model
*/
protected $model;
* Event constructor.
* @param \Illuminate\Database\Eloquent\Model $model
public function __construct(Model $model)
$this->model = $model;
}
* Model accessor.
* @return Illuminate\Database\Eloquent\Model
Model
This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.
@return
public function model()
return $this->model;
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.