This file contains 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
// Import the EventEmitter class from Node.js for creating and handling custom events. | |
import { EventEmitter } from 'events'; | |
// Define an interface for the configuration settings needed for pizza calculation. | |
interface IConfiguration { | |
slicesPerPerson: number; // Number of pizza slices each person will eat. | |
slicesPerPizza: number; // Number of slices that each pizza is divided into. | |
} | |
// Define an interface for the calculator, which will compute the number of pizzas needed. |
This file contains 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 | |
/** | |
* Locomotive Bedrock Valet Driver | |
* | |
* Supported Valet Version: 4 | |
*/ | |
namespace Valet\Drivers\Custom; |
This file contains 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 | |
/** | |
* Charcoal Valet Driver | |
* | |
* Supported Valet Version: 4 | |
*/ | |
namespace Valet\Drivers\Custom; |