options['uniqueName'] = $uniqueName; $this->options['status'] = $status; } /** * Provides a unique and addressable name to be assigned to this Session, assigned by the developer, to be optionally used in addition to SID. * * @param string $uniqueName A unique, developer assigned name of this Session. * @return $this Fluent Builder */ public function setUniqueName($uniqueName) { $this->options['uniqueName'] = $uniqueName; return $this; } /** * The Status of this Session. One of `in-progess` or `completed`. * * @param string $status The Status of this Session * @return $this Fluent Builder */ public function setStatus($status) { $this->options['status'] = $status; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Preview.Proxy.ReadSessionOptions ' . implode(' ', $options) . ']'; } } class CreateSessionOptions extends Options { /** * @param string $uniqueName A unique, developer assigned name of this Session. * @param integer $ttl How long will this session stay open, in seconds. * @param string $status The Status of this Session * @param string $participants The participants */ public function __construct($uniqueName = Values::NONE, $ttl = Values::NONE, $status = Values::NONE, $participants = Values::NONE) { $this->options['uniqueName'] = $uniqueName; $this->options['ttl'] = $ttl; $this->options['status'] = $status; $this->options['participants'] = $participants; } /** * Provides a unique and addressable name to be assigned to this Session, assigned by the developer, to be optionally used in addition to SID. * * @param string $uniqueName A unique, developer assigned name of this Session. * @return $this Fluent Builder */ public function setUniqueName($uniqueName) { $this->options['uniqueName'] = $uniqueName; return $this; } /** * How long will this session stay open, in seconds. Each new interaction resets this timer. * * @param integer $ttl How long will this session stay open, in seconds. * @return $this Fluent Builder */ public function setTtl($ttl) { $this->options['ttl'] = $ttl; return $this; } /** * The Status of this Session. One of `in-progess` or `completed`. * * @param string $status The Status of this Session * @return $this Fluent Builder */ public function setStatus($status) { $this->options['status'] = $status; return $this; } /** * The participants * * @param string $participants The participants * @return $this Fluent Builder */ public function setParticipants($participants) { $this->options['participants'] = $participants; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Preview.Proxy.CreateSessionOptions ' . implode(' ', $options) . ']'; } } class UpdateSessionOptions extends Options { /** * @param string $uniqueName A unique, developer assigned name of this Session. * @param integer $ttl How long will this session stay open, in seconds. * @param string $status The Status of this Session * @param string $participants The participants */ public function __construct($uniqueName = Values::NONE, $ttl = Values::NONE, $status = Values::NONE, $participants = Values::NONE) { $this->options['uniqueName'] = $uniqueName; $this->options['ttl'] = $ttl; $this->options['status'] = $status; $this->options['participants'] = $participants; } /** * Provides a unique and addressable name to be assigned to this Session, assigned by the developer, to be optionally used in addition to SID. * * @param string $uniqueName A unique, developer assigned name of this Session. * @return $this Fluent Builder */ public function setUniqueName($uniqueName) { $this->options['uniqueName'] = $uniqueName; return $this; } /** * How long will this session stay open, in seconds. Each new interaction resets this timer. * * @param integer $ttl How long will this session stay open, in seconds. * @return $this Fluent Builder */ public function setTtl($ttl) { $this->options['ttl'] = $ttl; return $this; } /** * The Status of this Session. One of `in-progess` or `completed`. * * @param string $status The Status of this Session * @return $this Fluent Builder */ public function setStatus($status) { $this->options['status'] = $status; return $this; } /** * The participants * * @param string $participants The participants * @return $this Fluent Builder */ public function setParticipants($participants) { $this->options['participants'] = $participants; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Preview.Proxy.UpdateSessionOptions ' . implode(' ', $options) . ']'; } }