silverstripe-framework/tests/php/Core/ObjectTest/CacheTest.php

24 lines
308 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?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;
}
}