mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
24 lines
308 B
PHP
24 lines
308 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;
|
||
|
}
|
||
|
|
||
|
}
|