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

23 lines
346 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;
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
}