• Using properly PDO class

    angelhvargas        
    0 Likes0 Commentsphp

    <?php
    namespace Project\DB;
    class PDOBase extends \PDO {
      //custom properties
      protected $connection_property_1;
      protected $status;
      protected $partition;
      public function __construct()
      {
        //to the PDO class
        //Read PHP cocumentation
        parent::construct();
      }
      
      public function __clone()
      {
        return null;
      }
      
      public function custom_1()
      {
        // custom methods
      }
      
      public function status() {}
      
    }

Comments (0)