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

20 lines
318 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\Core\Tests\ObjectTest;
class CacheTest extends BaseObject
2016-10-14 03:30:05 +02:00
{
public $count = 0;
2016-10-14 03:30:05 +02:00
public function cacheMethod($arg1 = null)
{
return ($arg1) ? 'hasarg' : 'noarg';
}
2016-10-14 03:30:05 +02:00
public function incNumber()
{
$this->count++;
return $this->count;
}
2016-10-14 03:30:05 +02:00
}