php-kitchen/yii2-domain

View on GitHub
src/Contracts/EntityCrudController.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace PHPKitchen\Domain\Contracts;

use PHPKitchen\Domain\DB\EntitiesRepository;

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

    public function setRepository($repository);

    public function findEntityByPk($pk);

    public function createListingDataProvider();
}