This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cron.schedule('* * * * *', () => { | |
| // Create an API call to query payments involving the account. | |
| var payments = recievingServer.payments().forAccount(recievingAccountId); | |
| // If some payments have already been handled, start the results from the | |
| // last seen payment. (See below in `handlePayment` where it gets saved.) | |
| var lastToken = loadLastPagingToken(); | |
| if (lastToken) { | |
| payments.cursor(lastToken); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // This can be found in the Symfony\Component\HttpFoundation\Response class | |
| const HTTP_CONTINUE = 100; | |
| const HTTP_SWITCHING_PROTOCOLS = 101; | |
| const HTTP_PROCESSING = 102; // RFC2518 | |
| const HTTP_OK = 200; | |
| const HTTP_CREATED = 201; | |
| const HTTP_ACCEPTED = 202; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //this part is what happened inside the model where the values where defined | |
| public function reviewValues() | |
| { | |
| //this is to return the review parameters | |
| //the review value key links the rest of the array values | |
| $cleanliness = array('Crispy clean' => 3, 'Clean' => 2, 'Dirty' => 1); | |
| $attitude = array('Excellent' => 3, 'Good' => 2, 'Bad' => 1); | |
| $wait_time = array('Less than 30 mins' => 3, '30 mins - 1 hour' => 2, 'Beyond' => 1); | |
| $diagnosis = array('Excellent' => 3, 'Good' => 2, 'Bad' => 1); | |
| $captions = array('Cleanliness' => 'How clean was the enviroment of the health care provider?', 'Attitude' => 'How where you treated by staff of the health care provider?', 'Wait time' => 'How long did you wait to see a doctor?', 'Diagnosis' => 'How well did you understand what was wrong with you and the treatment plans?'); |