<?php
namespace MiotApi\Contract\Specification;
class ActionSpecification extends Specification
{
protected $in;
protected $out;
public function init()
{
parent::init();
if ($this->has('in')) {
$ins = $this->__get('in');
if (!empty($ins)) {
foreach ($ins as $index => $property) {
$this->in[] = new PropertySpecification($property);
}
}
}
if ($this->has('out')) {
$outs = $this->__get('out');
if (!empty($outs)) {
foreach ($outs as $index => $property) {
$this->out[] = new PropertySpecification($property);
}
}
}
}
public function getIn()
{
return $this->in;
}
public function getOut()
{
return $this->out;
}
}