lib/Model/EventAttributes.php
public function setType($type)
    {
        $allowed_values = array('START', 'END', 'INTERMEDIATE_CATCH', 'INTERMEDIATE_THROW', 'BOUNDARY', 'IMPLICIT_THROW');
        if (!in_array($type, $allowed_values)) {
            throw new \InvalidArgumentException("Invalid value for 'type', must be one of 'START', 'END', 'INTERMEDIATE_CATCH', 'INTERMEDIATE_THROW', 'BOUNDARY', 'IMPLICIT_THROW'");
        }
        $this->container['type'] = $type;

        return $this;
    }
public function setType($type)
    {
        $allowed_values = array('START', 'END', 'INTERMEDIATE_CATCH', 'INTERMEDIATE_THROW', 'BOUNDARY', 'IMPLICIT_THROW');
        if (!in_array($type, $allowed_values)) {
            throw new \InvalidArgumentException("Invalid value for 'type', must be one of 'START', 'END', 'INTERMEDIATE_CATCH', 'INTERMEDIATE_THROW', 'BOUNDARY', 'IMPLICIT_THROW'");
        }
        $this->container['type'] = $type;

        return $this;
    }
public function setType ( $ type ) { $ allowed_values = array ( 'START' , 'END' , 'INTERMEDIATE_CATCH' , 'INTERMEDIATE_THROW' , 'BOUNDARY' , 'IMPLICIT_THROW' ) ; if ( ! in_array ( $ type , $ allowed_values ) ) { throw new \ InvalidArgumentException ( "Invalid value for 'type', must be one of 'START', 'END', 'INTERMEDIATE_CATCH', 'INTERMEDIATE_THROW', 'BOUNDARY', 'IMPLICIT_THROW'" ) ; } $ this -> container [ 'type' ] = $ type ; return $ this ; }
Sets type
@param string $type
@return $this
Sets type