Add generic factory

This commit is contained in:
Barry vd. Heuvel
2015-06-25 10:58:59 +02:00
parent 3a4671f3ea
commit 0373861536
+1
View File
@@ -12,6 +12,7 @@ namespace PHPSTORM_META {
$STATIC_METHOD_TYPES = [ $STATIC_METHOD_TYPES = [
<?php foreach($methods as $method): ?> <?php foreach($methods as $method): ?>
<?= $method ?> => [ <?= $method ?> => [
'' == '@',
<?php foreach($bindings as $abstract => $class): ?> <?php foreach($bindings as $abstract => $class): ?>
'<?= $abstract ?>' instanceof \<?= $class ?>, '<?= $abstract ?>' instanceof \<?= $class ?>,
<?php endforeach ?> ], <?php endforeach ?> ],