silverstripe-framework/tests/php/Core/ObjectTest/CacheTest.php
2016-12-19 16:08:19 +13:00

23 lines
346 B
PHP

<?php
namespace SilverStripe\Core\Tests\ObjectTest;
use SilverStripe\Core\Object;
class CacheTest extends Object
{
public $count = 0;
public function cacheMethod($arg1 = null)
{
return ($arg1) ? 'hasarg' : 'noarg';
}
public function incNumber()
{
$this->count++;
return $this->count;
}
}