sathyashrayan

interface and definition

May 17th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. //ValidationListInterface.php
  2. <?php
  3. namespace MarketPlace\Attributes\Service;
  4.  
  5. interface ValidationListInterface
  6. {
  7.     public function validatorList();
  8.        
  9.    
  10. }
  11. ?>
  12. //ValidationList.php
  13.  
  14. <?php
  15. namespace MarketPlace\Attributes\Service;
  16.  
  17. class ValidationList implements ValidationListInterface
  18. {
  19.     public function validatorList($validationList)
  20.     {
  21.         //yet to process the list
  22.         return $validationList;
  23.     }
  24.    
  25. }
Add Comment
Please, Sign In to add comment