for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* Spiral Framework.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
namespace Cycle\ORM\Promise;
use Cycle\ORM\ORMInterface;
use Cycle\ORM\PromiseFactoryInterface;
* Returns PromiseOne for all entities.
class PromiseFactory implements PromiseFactoryInterface
{
* @param ORMInterface $orm
* @param string $role
* @param array $scope
* @return ReferenceInterface|null
public function promise(ORMInterface $orm, string $role, array $scope): ?ReferenceInterface
return new PromiseOne($orm, $role, $scope);
}