helper.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?= '<?php' ?>
  2. // @formatter:off
  3. /**
  4. * A helper file for Laravel 5, to provide autocomplete information to your IDE
  5. * Generated for Laravel <?= $version ?> on <?= date("Y-m-d H:i:s") ?>.
  6. *
  7. * This file should not be included in your code, only analyzed by your IDE!
  8. *
  9. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  10. * @see https://github.com/barryvdh/laravel-ide-helper
  11. */
  12. <?php foreach($namespaces_by_extends_ns as $namespace => $aliases): ?>
  13. <?php if ($namespace == '\Illuminate\Database\Eloquent'): continue; endif; ?>
  14. namespace <?= $namespace == '__root' ? '' : trim($namespace, '\\') ?> {
  15. <?php foreach($aliases as $alias): ?>
  16. <?= trim($alias->getDocComment(' ')) ?>
  17. <?= $alias->getClassType() ?> <?= $alias->getExtendsClass() ?> {
  18. <?php foreach($alias->getMethods() as $method): ?>
  19. <?= trim($method->getDocComment(' ')) ?>
  20. public static function <?= $method->getName() ?>(<?= $method->getParamsWithDefault() ?>)
  21. {<?php if($method->getDeclaringClass() !== $method->getRoot()): ?>
  22. //Method inherited from <?= $method->getDeclaringClass() ?>
  23. <?php endif; ?>
  24. <?= $method->shouldReturn() ? 'return ': '' ?><?= $method->getRoot() ?>::<?= $method->getName() ?>(<?= $method->getParams() ?>);
  25. }
  26. <?php endforeach; ?>
  27. }
  28. <?php endforeach; ?>
  29. }
  30. <?php endforeach; ?>
  31. <?php foreach($namespaces_by_alias_ns as $namespace => $aliases): ?>
  32. namespace <?= $namespace == '__root' ? '' : trim($namespace, '\\') ?> {
  33. <?php foreach($aliases as $alias): ?>
  34. <?= $alias->getClassType() ?> <?= $alias->getShortName() ?> extends <?= $alias->getExtends() ?> {<?php if ($alias->getExtendsNamespace() == '\Illuminate\Database\Eloquent'): ?>
  35. <?php foreach($alias->getMethods() as $method): ?>
  36. <?= trim($method->getDocComment(' ')) ?>
  37. public static function <?= $method->getName() ?>(<?= $method->getParamsWithDefault() ?>)
  38. {<?php if($method->getDeclaringClass() !== $method->getRoot()): ?>
  39. //Method inherited from <?= $method->getDeclaringClass() ?>
  40. <?php endif; ?>
  41. <?= $method->shouldReturn() ? 'return ': '' ?><?= $method->getRoot() ?>::<?= $method->getName() ?>(<?= $method->getParams() ?>);
  42. }
  43. <?php endforeach; ?>
  44. <?php endif; ?>}
  45. <?php endforeach; ?>
  46. }
  47. <?php endforeach; ?>
  48. <?php if($helpers): ?>
  49. namespace {
  50. <?= $helpers ?>
  51. }
  52. <?php endif; ?>
  53. <?php if($include_fluent): ?>
  54. namespace Illuminate\Support {
  55. /**
  56. * Methods commonly used in migrations
  57. *
  58. * @method Fluent after(string $column) Add the after modifier
  59. * @method Fluent charset(string $charset) Add the character set modifier
  60. * @method Fluent collation(string $collation) Add the collation modifier
  61. * @method Fluent comment(string $comment) Add comment
  62. * @method Fluent default($value) Add the default modifier
  63. * @method Fluent first() Select first row
  64. * @method Fluent index(string $name = null) Add the in dex clause
  65. * @method Fluent on(string $table) `on` of a foreign key
  66. * @method Fluent onDelete(string $action) `on delete` of a foreign key
  67. * @method Fluent onUpdate(string $action) `on update` of a foreign key
  68. * @method Fluent primary() Add the primary key modifier
  69. * @method Fluent references(string $column) `references` of a foreign key
  70. * @method Fluent nullable(bool $value = true) Add the nullable modifier
  71. * @method Fluent unique(string $name = null) Add unique index clause
  72. * @method Fluent unsigned() Add the unsigned modifier
  73. * @method Fluent useCurrent() Add the default timestamp value
  74. * @method Fluent change() Add the change modifier
  75. */
  76. class Fluent {}
  77. }
  78. <?php endif ?>