for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This software package is licensed under `AGPL-3.0-only, proprietary` license[s].
*
* @package maslosoft/manganel
* @license AGPL-3.0-only, proprietary
* @copyright Copyright (c) Peter Maselkowski <[email protected]>
* @link https://maslosoft.com/manganel/
*/
namespace Maslosoft\Manganel\Decorators\QueryBuilder;
use Maslosoft\Manganel\Helpers\TypeNamer;
use Maslosoft\Manganel\Interfaces\ManganelAwareInterface;
use Maslosoft\Manganel\Interfaces\QueryBuilder\ConditionDecoratorInterface;
use Maslosoft\Manganel\Manganel;
use Maslosoft\Manganel\SearchCriteria;
use Maslosoft\Manganel\Traits\ManganelAwareTrait;
class MoreLikeThisDecorator implements ConditionDecoratorInterface,
ManganelAwareInterface
{
use ManganelAwareTrait;
const Ns = __NAMESPACE__;
public function decorate(&$conditions, SearchCriteria $criteria)
$mlt = $criteria->getMoreLike();
if (empty($mlt))
return;
}
$conditions = [
[
'more_like_this' => $mlt->toArray()
]
];
public function getKind()
return self::KindShould;