for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Benrowe\Laravel\Widgets\Traits;
/**
* Caching trait for Widgets
*
* By including this trait in with your widget, it will cache it's output
* @package Benrowe\Laravel\Widgets\Traits
*/
trait Cache
{
* The duration of the cache in seconds
* @return int
public function cacheDuration()
return 300;
}
* [cacheEnabled description]
* @return [type] [description]
[type]
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.
public function cacheEnabled()
return true;
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.