PHP Classes

File: app/Support/Repository/Commands/stubs/repository.stub

Recommend this page to a friend!
  Classes of Kevinralph M Tenorio   Lumen API PureMVC MultiCore Framework for PHP   app/Support/Repository/Commands/stubs/repository.stub   Download  
File: app/Support/Repository/Commands/stubs/repository.stub
Role: Application script
Content type: text/plain
Description: Repository Stub File
Class: Lumen API PureMVC MultiCore Framework for PHP
Implements repository pattern using Laravel Lumen
Author: By
Last change:
Date: 5 years ago
Size: 573 bytes
 

Contents

Class file image Download
<?php

namespace {{repositoryClassNamespace}};

use {{
modelNamespace}}\{{modelName}};
use {{
parentRepositoryClassNamespace}}\{{parentRepositoryClassName}};
use {{
repositoryInterfaceNamespace}}\{{repositoryInterfaceName}};

/**
 * Class {{repositoryClassName}}
 *
 * @package {{repositoryClassNamespace}}
 */
class {{repositoryClassName}} extends {{parentRepositoryClassName}} implements {{repositoryInterfaceName}}
{
   
/**
     * @param {{modelName}} $model
     */
   
public function __construct({{modelName}} $model)
    {
       
parent::__construct($model);
    }
}