Skip to content
Snippets Groups Projects

Dev#22657 pnb display user account

Merged Ghislain Loas requested to merge dev#22657_pnb_display_user_account into WIP

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • efalcy
    efalcy @efalcy started a thread on the diff
    88
    89 public function numberOfSimultaneousLoansRemaning() {
    90 return $this->getLoanConstraint()->numberOfSimultaneousLoansRemaning();
    91 }
    92
    93
    94 public function updateLoanUsers($count) {
    95 return $this->getLoanConstraint()->updateLoanUsers($count);
    96 }
    97
    98
    99 public function hasAvailableQuantity() {
    100 return $this->getLoanConstraint()->hasAvailableQuantity();
    101 }
    102
    103
    • $this->getLoanConstraint() ne renvoie jamais nul? il faudrait peut-etre extraire : $this->detect(function($c) {return $c->isAvailabilityConstraint();}) dans une méthode (utilisé au moins 3 fois) ? Et cette closure ne renvoie jamais nul?

Please register or sign in to reply