for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Tinyissue package.
*
* (c) Mohamed Alsharaf <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tinyissue\Model\Traits\Message\Queue;
/**
* RelationTrait is trait class containing the relationship methods for the message queue model.
* @author Mohamed Alsharaf <[email protected]>
* @property static $this
trait RelationTrait
{
* @return mixed
public function changeBy()
return $this->belongsTo('\Tinyissue\Model\User', 'change_by_id');
}
public function model()
return $this->morphTo();
abstract public function belongsTo($related, $foreignKey = null, $otherKey = null, $relation = null);
abstract public function morphTo($name = null, $type = null, $id = null);