php-kitchen/yii2-domain

View on GitHub
src/Contracts/EntityController.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace PHPKitchen\Domain\Contracts;

/**
 * Represents entities controller.
 *
 * @property \PHPKitchen\Domain\DB\EntitiesRepository $repository
 *
 * @package PHPKitchen\Domain\Contracts
 * @author Dmitry Kolodko <prowwid@gmail.com>
 */
interface EntityController {
    /**
     * @return \PHPKitchen\Domain\DB\EntitiesRepository
     */
    public function getRepository();

    public function setRepository(Repository $repository);

    public function findEntityByPk($pk);
}