extract() public static method

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
return string
Exemplo n.º 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
        {
        }
    }
}