ModelBuildPage.php 992 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * This code was generated by
  4. * \ / _ _ _| _ _
  5. * | (_)\/(_)(_|\/| |(/_ v1.0.0
  6. * / /
  7. */
  8. namespace Twilio\Rest\Preview\Understand\Assistant;
  9. use Twilio\Page;
  10. /**
  11. * PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
  12. */
  13. class ModelBuildPage extends Page {
  14. public function __construct($version, $response, $solution) {
  15. parent::__construct($version, $response);
  16. // Path Solution
  17. $this->solution = $solution;
  18. }
  19. public function buildInstance(array $payload) {
  20. return new ModelBuildInstance($this->version, $payload, $this->solution['assistantSid']);
  21. }
  22. /**
  23. * Provide a friendly representation
  24. *
  25. * @return string Machine friendly representation
  26. */
  27. public function __toString() {
  28. return '[Twilio.Preview.Understand.ModelBuildPage]';
  29. }
  30. }