Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split combined setters/getters for cleaner API. #166

Merged
merged 4 commits into from Apr 29, 2017

Conversation

dereuromark
Copy link
Member

Continue #165

The different return types of useCollection() vs getCollection is especially important to clean up here.

@codecov
Copy link

codecov bot commented Apr 28, 2017

Codecov Report

Merging #166 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #166      +/-   ##
============================================
+ Coverage     99.68%   99.69%   +<.01%     
- Complexity      138      140       +2     
============================================
  Files            11       11              
  Lines           321      325       +4     
============================================
+ Hits            320      324       +4     
  Misses            1        1
Impacted Files Coverage Δ Complexity Δ
src/Manager.php 100% <100%> (ø) 25 <5> (+2) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 07601ad...47784b5. Read the comment docs.

@dereuromark dereuromark changed the title Split compbined setters/getters for cleaner API. Split combined setters/getters for cleaner API. Apr 28, 2017
@@ -65,12 +65,12 @@ public function repository()
/**
* Return Table
*
* @return \Cake\ORM\Table Table Instance
* @return \Cake\Datasource\RepositoryInterface Repository Instance
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does change the return and it's not BC per-se, but I'm going to merge this in as it's the proper way to do things.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It fixes only the doc block (semantic) to what the non-deprecated method already returns.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep thats why I'm fine with merging as is.

@josegonzalez josegonzalez merged commit 2dc574c into master Apr 29, 2017
@josegonzalez josegonzalez deleted the master-getter-setter-collection branch April 29, 2017 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants