public function addOperation($operation)
    {
        Validate::isTrue(
            $operation instanceof BatchOperation,
            Resources::INVALID_BO_TYPE_MSG
        );

        $this->_operations[] = $operation;
    }
public function addOperation($operation)
    {
        Validate::isTrue(
            $operation instanceof BatchOperation,
            Resources::INVALID_BO_TYPE_MSG
        );

        $this->_operations[] = $operation;
    }
public function addOperation ( $ operation ) { Validate :: isTrue ( $ operation instanceof BatchOperation , Resources :: INVALID_BO_TYPE_MSG ) ; $ this -> _operations [ ] = $ operation ; }
Adds operation to the batch operations.

@param mixed $operation The operation to add.

@return void
Adds operation to the batch operations .