public function equals(StatementObject $actor): bool
    {
        if (!parent::equals($actor)) {
            return false;
        }

        if (!$actor instanceof Actor) {
            return false;
        }

        if ($this->name !== $actor->name) {
            return false;
        }

        if (null !== $this->iri xor null !== $actor->iri) {
            return false;
        }

        if (null !== $this->iri && null !== $actor->iri && !$this->iri->equals($actor->iri)) {
            return false;
        }

        return true;
    }
public function equals(StatementObject $actor): bool
    {
        if (!parent::equals($actor)) {
            return false;
        }

        if (!$actor instanceof Actor) {
            return false;
        }

        if ($this->name !== $actor->name) {
            return false;
        }

        if (null !== $this->iri xor null !== $actor->iri) {
            return false;
        }

        if (null !== $this->iri && null !== $actor->iri && !$this->iri->equals($actor->iri)) {
            return false;
        }

        return true;
    }
public function equals ( StatementObject $ actor ) : bool { if ( ! parent :: equals ( $ actor ) ) { return false ; } if ( ! $ actor instanceof Actor ) { return false ; } if ( $ this -> name !== $ actor -> name ) { return false ; } if ( null !== $ this -> iri xor null !== $ actor -> iri ) { return false ; } if ( null !== $ this -> iri && null !== $ actor -> iri && ! $ this -> iri -> equals ( $ actor -> iri ) ) { return false ; } return true ; }
Checks if another actor is equal.

Two actors are equal if and only if all of their properties are equal.
Checks if another actor is equal .