public static function getInstance() { if (!isset(self::$pdoCRUDAdapter)) { self::$pdoCRUDAdapter = new self(); // On s'instancie nous-mêmes. :) } return self::$pdoCRUDAdapter; }
public function __construct() { $this->id = false; $this->crudAdapter = PDOCRUDAdapter::getInstance(); }