mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-07 02:01:24 +02:00
20 lines
318 B
PHP
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;
|
|
}
|
|
}
|