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 | |
| final class ProduceAccountStatementHandler | |
| { | |
| private $accountFinder; | |
| private $pdfGenerator; | |
| private $accountTotalCalculator; | |
| public function __construct( | |
| AccountFinder $accountFinder, |
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 | |
| class ProduceDocumentHandler | |
| { | |
| private $accountFinder; | |
| private $pdfGenerator; | |
| public function __construct( | |
| AccountFinder $accountFinder, | |
| PdfGenerator $pdfGenerator |
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 | |
| final class ProduceAccountStatementHandler | |
| { | |
| private $accountFinder; | |
| private $pdfGenerator; | |
| public function __construct( | |
| AccountFinder $accountFinder, | |
| PdfGenerator $pdfGenerator |
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
| abstract class ProducePdfHandler | |
| { | |
| private $pdfGenerator; | |
| private $dataProvider; | |
| public function __construct( | |
| PdfGenerator $pdfGenerator, | |
| DefaultDataProvider $dataProvider | |
| ) { | |
| $this->pdfGenerator = $pdfGenerator; |
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
| final class ProduceStatementOfAccountHandler | |
| { | |
| private $pdfGenerator; | |
| private $dataProvider; | |
| public function __construct( | |
| PdfGenerator $pdfGenerator, | |
| DefaultDataProvider $dataProvider | |
| ) { | |
| $this->pdfGenerator = $pdfGenerator; |
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
| function calculateInvoiceTotal(Invoice $invoice): float | |
| { | |
| $mainTotal = 0; | |
| foreach ($invoice->main->items() as $item) { | |
| if ($item->revoked() !== true) { | |
| $mainTotal = $mainTotal + $item->total(); | |
| } | |
| } | |
| $othersTotal = 0; |
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
| Arranger Journey | |
| http://fas-prototype-demo.s3-website-eu-west-1.amazonaws.com/prototype/arranger-dashboard | |
| Bereaved Journey | |
| http://fas-prototype-demo-bv.s3-website-eu-west-1.amazonaws.com/bereaved-portal |
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
| #!/usr/bin/env ruby | |
| # coding: utf-8 | |
| # <bitbar.title>GeoIPWeather</bitbar.title> | |
| # <bitbar.version>v0.1.1</bitbar.version> | |
| # <bitbar.author>Taylor Zane</bitbar.author> | |
| # <bitbar.author.github>taylorzane</bitbar.author.github> | |
| # <bitbar.desc>Your weather in the menu bar 🌤</bitbar.desc> | |
| # <bitbar.image>http://i.imgur.com/vrT6vfb.png</bitbar.image> | |
| # <bitbar.dependencies>ruby</bitbar.dependencies> |
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 | |
| class Account | |
| { | |
| private $capital; | |
| private $rate; | |
| public function __construct(float $capital, float $rate) | |
| { | |
| $this->capital = $capital; |