1: <?php
2: namespace Application\Model\Service\Impl;
3: use Application\Model\Service\ApplicationService;
4: use Application\Model\DAO\Impl\IndexDAO;
5:
6: class IndexService extends ApplicationService {
7:
8: private $dao;
9:
10: public function __construct() {
11: parent::__construct();
12: $this->dao = new IndexDAO();
13: }
14:
15: public function testMessage() {
16: return "This is message from Service";
17: }
18:
19: public function messageFromDAO() {
20: return $this->dao->getValues();
21: }
22: }