Esempio n. 1
0
 /**
  * @param string $type
  * @param null $context
  * @return ReturnValue
  * @throws \CatLab\Charon\Exceptions\InvalidContextAction
  */
 public function many($type = null, $context = null) : ReturnValue
 {
     $this->cardinality = 'many';
     if (isset($type)) {
         $this->type = $type;
     }
     if (isset($context)) {
         Action::checkValid($context);
         $this->context = $context;
     }
     return $this;
 }