2023-02-01 04:05:54 +01:00
|
|
|
<?php
|
|
|
|
|
2024-09-23 04:31:50 +02:00
|
|
|
namespace SilverStripe\Model\Tests\ModelDataTest;
|
2023-02-01 04:05:54 +01:00
|
|
|
|
|
|
|
use SilverStripe\Core\Extension;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
|
2024-09-23 04:31:50 +02:00
|
|
|
class ModelDataTestExtension extends Extension implements TestOnly
|
2023-02-01 04:05:54 +01:00
|
|
|
{
|
|
|
|
private function privateMethodFromExtension(): string
|
|
|
|
{
|
|
|
|
return 'Private function';
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function protectedMethodFromExtension(): string
|
|
|
|
{
|
|
|
|
return 'Protected function';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function publicMethodFromExtension(): string
|
|
|
|
{
|
|
|
|
return 'Public function';
|
|
|
|
}
|
|
|
|
}
|