Recommend this page to a friend! |
Download .zip |
Info | Example | View files (8) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-07-06 (13 hours ago) | Not yet rated by the users | Total: Not yet counted | Not yet ranked |
Version | License | PHP version | Categories | |||
observe 1.0 | MIT/X Consortium ... | 8 | E-Commerce, Design Patterns, PHP 8 |
Description | Author | |
This package can show how to control product stocks with the design observer pattern. |
<?php |
Files |
File | Role | Description | ||
---|---|---|---|---|
src (5 files) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
index.php | Example | Example script |
Files | / | src |
File | Role | Description |
---|---|---|
ControleEstoqueSubject.php | Class | Class to control product stocks by observing the quantities of product that is in stock and updates the product purchase requests |
ControleRequisicoesCompraObserver.php | Class | Class that observes the request for purchasing products that are running out of stock |
EmailObserver.php | Class | Class that observes the stock and sends an email message when the stock is low |
Observer.php | Class | Observer interface |
Subject.php | Class | Subject interface |
Version Control | Unique User Downloads | |||||||
100% |
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.