silverstripe-framework/tests/php/Core/ObjectTest/CacheTest.php
Damian Mooyman fba8e2c245 API Remove Object class
API DataObjectSchema::manyManyComponent() return array is now associative array
2017-05-23 13:50:35 +12:00

20 lines
318 B
PHP

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