Neos\Flow\Tests\Functional\Persistence\Fixtures\RelatedIndexEntity::setSorting PHP Method

setSorting() public method

public setSorting ( string $sorting )
$sorting string
    public function setSorting($sorting)
    {
        $this->sorting = $sorting;
    }

Usage Example

 /**
  * @param string $sorting
  * @param RelatedIndexEntity $relatedIndexEntity
  */
 public function setRelatedIndexEntity($sorting, RelatedIndexEntity $relatedIndexEntity)
 {
     $relatedIndexEntity->setSorting($sorting);
     $relatedIndexEntity->setEntityWithIndexedRelation($this);
     $this->relatedIndexEntities->set($sorting, $relatedIndexEntity);
 }