for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (c) Flipbox Digital Limited
* @license https://github.com/flipboxfactory/craft-ember/blob/master/LICENSE
* @link https://github.com/flipboxfactory/craft-ember/
*/
namespace flipbox\craft\ember\models;
* @author Flipbox Factory <[email protected]>
* @since 2.0.0
trait AuditAttributesTrait
{
use DateCreatedAttributeTrait, DateUpdatedAttributeTrait, UidAttributeTrait;
* @inheritdoc
public function auditRules()
return array_merge(
$this->uidRules(),
$this->dateCreatedRules(),
$this->dateUpdatedRules()
);
}
public function auditAttributes()
return [
'dateCreated',
'dateUpdated',
'uid'
];
public function auditAttributeLabels()
$this->uidAttributeLabel(),
$this->dateCreatedAttributeLabels(),
$this->dateUpdatedAttributeLabels()