lib/Model/TaskInstanceAttributes.php
public function setPriority($priority)
    {
        $allowed_values = array('1', '2', '3', '4', '5');
        if (!in_array($priority, $allowed_values)) {
            throw new \InvalidArgumentException("Invalid value for 'priority', must be one of '1', '2', '3', '4', '5'");
        }
        $this->container['priority'] = $priority;

        return $this;
    }
public function setPriority($priority)
    {
        $allowed_values = array('1', '2', '3', '4', '5');
        if (!in_array($priority, $allowed_values)) {
            throw new \InvalidArgumentException("Invalid value for 'priority', must be one of '1', '2', '3', '4', '5'");
        }
        $this->container['priority'] = $priority;

        return $this;
    }
public function setPriority ( $ priority ) { $ allowed_values = array ( '1' , '2' , '3' , '4' , '5' ) ; if ( ! in_array ( $ priority , $ allowed_values ) ) { throw new \ InvalidArgumentException ( "Invalid value for 'priority', must be one of '1', '2', '3', '4', '5'" ) ; } $ this -> container [ 'priority' ] = $ priority ; return $ this ; }
Sets priority
@param string $priority
@return $this
Sets priority