extract() public static méthode

Create a shim that extends a gear type
public static extract ( string $index, string $desired_name, string $namespace = '' ) : string
$index string
$desired_name string
$namespace string Namespace
Résultat string
Exemple #1
0
<?php

declare (strict_types=1);
namespace Airship\Cabin\Hull\Blueprint;

use Airship\Engine\Blueprint;
use Airship\Engine\Gears;
if (!\class_exists('BlueprintGear')) {
    Gears::extract('Blueprint', 'BlueprintGear', __NAMESPACE__);
    // Make autocomplete work with existing IDEs:
    if (IDE_HACKS) {
        /**
         * Class BlueprintGear
         * @package Airship\Cabin\Hull\Blueprint
         */
        class BlueprintGear extends Blueprint
        {
        }
    }
}