29 lines
564 B
PHP
29 lines
564 B
PHP
|
<?php
|
||
|
|
||
|
|
||
|
namespace Twilio;
|
||
|
|
||
|
|
||
|
class InstanceResource {
|
||
|
protected $version;
|
||
|
protected $context;
|
||
|
protected $properties = [];
|
||
|
protected $solution = [];
|
||
|
|
||
|
public function __construct(Version $version) {
|
||
|
$this->version = $version;
|
||
|
}
|
||
|
|
||
|
public function toArray(): array {
|
||
|
return $this->properties;
|
||
|
}
|
||
|
|
||
|
public function __toString(): string {
|
||
|
return '[InstanceResource]';
|
||
|
}
|
||
|
|
||
|
public function __isset($name): bool {
|
||
|
return \array_key_exists($name, $this->properties);
|
||
|
}
|
||
|
}
|