PHP code example of simplecomplex / explorable
1. Go to this page and download the library: Download simplecomplex/explorable 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/ */
simplecomplex / explorable example snippets
use SimpleComplex\Explorable\Explorable;
use SimpleComplex\Explorable\ExplorableTrait;
/**
* @property-read string $foo
* @property-read string $bar
*/
class ExplorablesDeclared extends Explorable
{
use ExplorableTrait;
public const EXPLORABLE_VISIBLE = [
'foo' => true,
'bar' => true,
];
protected string $foo;
protected string $bar;
}
use SimpleComplex\Explorable\Explorable;
use SimpleComplex\Explorable\ExplorableTrait;
/**
* @property-read string $foo
* @property-read string $bar
*/
class ExplorablesDiscoverable extends Explorable
{
use ExplorableTrait;
protected ?string $foo = null;
protected ?string $bar = null;
}