Skip to content

Commit

Permalink
TASK: Add sortNames and priority to flowQuery operations
Browse files Browse the repository at this point in the history
  • Loading branch information
mficzel committed Nov 7, 2023
1 parent ba37e4a commit 45d3bd4
Show file tree
Hide file tree
Showing 11 changed files with 97 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@
*/
final class BackReferenceNodesOperation implements OperationInterface
{
/**
* {@inheritdoc}
*
* @var string
*/
protected static $shortName = 'backReferenceNodes';

/**
* {@inheritdoc}
*
* @var integer
*/
protected static $priority = 0;

/**
* @Flow\Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@
*/
final class BackReferencesOperation implements OperationInterface
{
/**
* {@inheritdoc}
*
* @var string
*/
protected static $shortName = 'backReferences';

/**
* {@inheritdoc}
*
* @var integer
*/
protected static $priority = 0;

/**
* @Flow\Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class NextAllOperation extends AbstractOperation
*
* @var integer
*/
protected static $priority = 100;
protected static $priority = 0;

/**
* @Flow\Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class NextUntilOperation extends AbstractOperation
*
* @var integer
*/
protected static $priority = 100;
protected static $priority = 0;

/**
* @Flow\Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ParentsOperation extends AbstractOperation
*
* @var integer
*/
protected static $priority = 100;
protected static $priority = 0;

/**
* @Flow\Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ParentsUntilOperation extends AbstractOperation
*
* @var integer
*/
protected static $priority = 100;
protected static $priority = 0;

/**
* @Flow\Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@
*/
final class ReferenceNodesOperation implements OperationInterface
{
/**
* {@inheritdoc}
*
* @var string
*/
protected static $shortName = 'referenceNodes';

/**
* {@inheritdoc}
*
* @var integer
*/
protected static $priority = 0;

/**
* @Flow\Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@
*/
final class ReferencePropertyOperation implements OperationInterface
{
/**
* {@inheritdoc}
*
* @var string
*/
protected static $shortName = 'referenceProperty';

/**
* {@inheritdoc}
*
* @var integer
*/
protected static $priority = 0;

/** @param array<int, mixed> $context */
public function canEvaluate($context): bool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@
*/
final class ReferencesOperation implements OperationInterface
{
/**
* {@inheritdoc}
*
* @var string
*/
protected static $shortName = 'references';

/**
* {@inheritdoc}
*
* @var integer
*/
protected static $priority = 0;

/**
* @Flow\Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ final class RemoveOperation implements OperationInterface
{
use CreateNodeHashTrait;

/**
* {@inheritdoc}
*
* @var string
*/
protected static $shortName = 'remove';

/**
* {@inheritdoc}
*
* @var integer
*/
protected static $priority = 100;

/** @param array<int, mixed> $context */
public function canEvaluate($context): bool
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,20 @@ final class UniqueOperation implements OperationInterface
{
use CreateNodeHashTrait;

/**
* {@inheritdoc}
*
* @var string
*/
protected static $shortName = 'unique';

/**
* {@inheritdoc}
*
* @var integer
*/
protected static $priority = 100;

/** @param array<int, mixed> $context */
public function canEvaluate($context): bool
{
Expand Down

0 comments on commit 45d3bd4

Please sign in to comment.