class Workspace implements FilterInterface (View source)

Filter nodes by workspace name.

Properties

protected string $workspaceName

The workspace name to match on.

Methods

void
setWorkspaceName(string $nodeName)

Sets the workspace name to match on.

bool
matches(NodeData $node)

Returns true if the given node is in the workspace this filter expects.

Details

void setWorkspaceName(string $nodeName)

Sets the workspace name to match on.

Parameters

string $nodeName

Return Value

void

bool matches(NodeData $node)

Returns true if the given node is in the workspace this filter expects.

Parameters

NodeData $node

Return Value

bool