Create the persistence layer

You can have different classes. One for MySQL and other to SQLite,

On Wed, Dec 24, 2014 at 12:36 AM, Jack Makiyama <notifications@github.com>
wrote:

>> +    {
>> +        $list = $this->getAll();
>> +
>> +        if (empty($list)) {
>> +            return $list;
>> +        }
>> +
>> +        shuffle($list);
>> +
>> +        return $list[0];
>> +    }
>> +
>> +    public function getAll()
>> +    {
>> +        $stm = $this->pdo
>> +                    ->prepare('SELECT id, title, text FROM phrases;');
> I thought in the possibility of using MySQL relational database. What do you think of implement specific functionality of SQLite?
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/malukenho/phrases/pull/19/files#r22244467