for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Info
*
* @package LivePersonInc\LiveEngageLaravel\Models
*/
namespace LivePersonInc\LiveEngageLaravel\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
class Info extends Model
{
protected $guarded = [];
protected $appends = [
'startTime',
];
public function getStartTimeAttribute()
return new Carbon($this->attributes['startTime']);
}
public function getEndTimeAttribute()
return new Carbon($this->attributes['endTime']);
public function getSessionIdAttribute()
return str_replace($this->accountId, '', $this->engagementId);
engagementId
LivePersonInc\LiveEngageLaravel\Models\Info
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.
accountId
public function getMinutesAttribute()
return round($this->attributes['duration'] / 60, 2);
public function getSecondsAttribute()
return $this->attributes['duration'];
public function getHoursAttribute()
return round($this->minutes / 60, 2);
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.