public function setType($type)
    {
        Validate::isTrue(
            BatchOperationType::isValid($type),
            Resources::INVALID_BO_TYPE_MSG
        );

        $this->_type = $type;
    }
public function setType($type)
    {
        Validate::isTrue(
            BatchOperationType::isValid($type),
            Resources::INVALID_BO_TYPE_MSG
        );

        $this->_type = $type;
    }
public function setType ( $ type ) { Validate :: isTrue ( BatchOperationType :: isValid ( $ type ) , Resources :: INVALID_BO_TYPE_MSG ) ; $ this -> _type = $ type ; }
Sets operation type.

@param string $type The operation type. Must be valid type.

@return void
Sets operation type .