PHP code example of ilya / block
1. Go to this page and download the library: Download ilya/block 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/ */
ilya / block example snippets
class Foo {
/**
* The Bar.
*
* @var integer
*/
protected $bar;
/**
* The Baz.
*
* @var string
*/
public $baz;
/**
* Do Amaze.
*
* @param string $amaze
* @return void
*/
private function wow($amaze)
{
}
}
$block->methods(ReflectionMethod::IS_PUBLIC); // only fetch public methods
// only fetch private AND protected properties
$block->properties(ReflectionProperty::IS_PRIVATE | ReflectionProperty::IS_PROTECTED);