model.php.twig 569 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /*
  3. * Copyright 2017 Aaron Scherer
  4. *
  5. * This source file is subject to the license that is bundled
  6. * with this source code in the file LICENSE
  7. *
  8. * @package restcord/restcord
  9. * @copyright Aaron Scherer 2017
  10. * @license MIT
  11. */
  12. namespace RestCord\Response;
  13. use GuzzleHttp\Command\Guzzle\GuzzleClient;
  14. class {{ name|title }}
  15. {
  16. {% for property, config in model.properties %}
  17. /**
  18. * @var {{ config.type|replace({"?": "null|", "snowflake": "int"}) }}
  19. */
  20. public ${{ property }};
  21. {% if not loop.last %}
  22. {% endif %}
  23. {% endfor %}
  24. }