PHP code example of atekushi / facade
1. Go to this page and download the library: Download atekushi/facade library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
atekushi / facade example snippets
use Atekushi\Facade\Facade;
class BaseClass {
public function test(){
echo "Test"
}
}
/**
* @method static void test()
*
* @mixin BaseClass
*/
class A extends Facade
{
protected static function getClassSubject(): string
{
return BaseClass::class;
}
}
A::test()