FsProcessDelegate.php 470 B

123456789101112131415161718
  1. <?php
  2. namespace Nesk\Rialto\Tests\Implementation;
  3. use Nesk\Rialto\Traits\UsesBasicResourceAsDefault;
  4. use Nesk\Rialto\Interfaces\ShouldHandleProcessDelegation;
  5. class FsProcessDelegate implements ShouldHandleProcessDelegation
  6. {
  7. use UsesBasicResourceAsDefault;
  8. public function resourceFromOriginalClassName(string $className): ?string
  9. {
  10. $class = __NAMESPACE__."\\Resources\\$className";
  11. return class_exists($class) ? $class : null;
  12. }
  13. }