Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/ContentRepository90/Legacy/NodeInterfaceProjection.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace Neos\ContentRepository\Domain\Projection\Content;

use Neos\ContentRepository\Domain\Model\Node;

/**
* @deprecated
*/
class NodeInterface extends Node
{

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

namespace Neos\Rector\Test;

class SomeClass extends AnotherClass
{
public function getNode(): \Neos\ContentRepository\Domain\Projection\Content\NodeInterface {
return $node;
}

public function node()
{
$nodeIdentifier = (string) $this->getNode()->getNodeAggregateIdentifier();
$nodeTypeName = (string) $this->getNode()->getNodeTypeName();
$nodeName = (string) $this->getNode()->getNodeName();
}
}

-----
<?php

namespace Neos\Rector\Test;

class SomeClass extends AnotherClass
{
public function getNode(): \Neos\ContentRepository\Core\Projection\ContentGraph\Node {
return $node;
}

public function node()
{
$nodeIdentifier = (string) $this->getNode()->aggregateId;
$nodeTypeName = (string) $this->getNode()->nodeTypeName;
$nodeName = (string) $this->getNode()->nodeName;
}
}