App\services\NotesService::getOne PHP Method

getOne() public method

public getOne ( $id )
    public function getOne($id)
    {
        return $this->db->fetchAssoc("SELECT * FROM notes WHERE id=?", [(int) $id]);
    }