for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace gossi\swagger;
use phootwork\lang\Arrayable;
class SecurityScheme extends AbstractModel implements Arrayable {
/** @var string */
private $name;
private $type;
private $description;
/**
* @param string $name
* @param array $contents
*/
public function __construct($name, $contents = []) {
$this->name = $name;
$this->parse($contents);
}
private function parse($contents = []) {
$this->type = $contents->get('type');
get
$contents
array
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.
$this->description = $contents->get('description');
* @return array
public function toArray() {
return $this->export('type', 'description');
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.