/** * {@inheritdoc} */ public function compare(Node $other) { // we can compare only units if ($other instanceof self) { return $this->is($other->toString()) ? 0 : null; } }
/** * {@inheritdoc} */ public function compare(Node $other) { // we can compare only units if ($other instanceof self) { return $this->is($other->toString()) ? 0 : null; } }