src/Portfolio/Card.php
public function update(array $data)
    {
        $cardId = empty($data['id']) ? 0: (int) $data['id'];
        if ($cardId <= 0) {
            throw new Exception('Required field id');
        }
        $data['cardId'] = $data['id'];
        unset($data['id']);

        if (empty($data['columnId'])) {
            throw new Exception('Required field columnId');
        }

        if (empty($data['oldColumnId'])) {
            throw new Exception('Required field oldColumnId');
        }

        return $this->rest->put("$this->action/$cardId/move", $data);
    }
public function update(array $data)
    {
        $cardId = empty($data['id']) ? 0: (int) $data['id'];
        if ($cardId <= 0) {
            throw new Exception('Required field id');
        }
        $data['cardId'] = $data['id'];
        unset($data['id']);

        if (empty($data['columnId'])) {
            throw new Exception('Required field columnId');
        }

        if (empty($data['oldColumnId'])) {
            throw new Exception('Required field oldColumnId');
        }

        return $this->rest->put("$this->action/$cardId/move", $data);
    }
public function update ( array $ data ) { $ cardId = empty ( $ data [ 'id' ] ) ? 0 : ( int ) $ data [ 'id' ] ; if ( $ cardId <= 0 ) { throw new Exception ( 'Required field id' ) ; } $ data [ 'cardId' ] = $ data [ 'id' ] ; unset ( $ data [ 'id' ] ) ; if ( empty ( $ data [ 'columnId' ] ) ) { throw new Exception ( 'Required field columnId' ) ; } if ( empty ( $ data [ 'oldColumnId' ] ) ) { throw new Exception ( 'Required field oldColumnId' ) ; } return $ this -> rest -> put ( "$this->action/$cardId/move" , $ data ) ; }
Moves the given card from one board to another

@param array $data

@return bool
@throws \TeamWorkPm\Exception
Moves the given card from one board to another