src/Project.php
public function activate($id)
    {
        $id = (int) $id;
        if ($id <= 0) {
            throw new Exception('Invalid param id');
        }
        $data = [];
        $data['id'] = $id;
        $data['status'] = 'active';
        return $this->update($data);
    }
public function activate($id)
    {
        $id = (int) $id;
        if ($id <= 0) {
            throw new Exception('Invalid param id');
        }
        $data = [];
        $data['id'] = $id;
        $data['status'] = 'active';
        return $this->update($data);
    }
public function activate ( $ id ) { $ id = ( int ) $ id ; if ( $ id <= 0 ) { throw new Exception ( 'Invalid param id' ) ; } $ data = [ ] ; $ data [ 'id' ] = $ id ; $ data [ 'status' ] = 'active' ; return $ this -> update ( $ data ) ; }
Shortcut for active project

@param int $id

@return bool
@throws \TeamWorkPm\Exception
Shortcut for active project