Soyhuce/l5-repository

View on GitHub
src/Prettus/Repository/Traits/TransformableTrait.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Prettus\Repository\Traits;

/**
 * Class TransformableTrait
 *
 * @package Prettus\Repository\Traits
 */
trait TransformableTrait
{

    /**
     * @return array
     */
    public function transform()
    {
        return $this->toArray();
    }
}