Storm\Core\Object\DiscardedRelationship::GetParentIdentity PHP Метод

GetParentIdentity() публичный Метод

public GetParentIdentity ( ) : Identity
Результат Identity
    public function GetParentIdentity()
    {
        return $this->ParentIdentity;
    }

Usage Example

 public function testSuppliedParametersAreEqualToGetterMethods()
 {
     $IsIdentifying = true;
     $ParentIdentity = $this->getMockWithoutConstructor(self::CoreObjectNamespace . 'Identity');
     $ReletedIdentity = $this->getMockWithoutConstructor(self::CoreObjectNamespace . 'Identity');
     $DiscardedRelationship = new DiscardedRelationship($IsIdentifying, $ParentIdentity, $ReletedIdentity);
     $this->assertEquals($DiscardedRelationship->IsIdentifying(), $IsIdentifying);
     $this->assertEquals($DiscardedRelationship->GetParentIdentity(), $ParentIdentity);
     $this->assertEquals($DiscardedRelationship->GetRelatedIdentity(), $ReletedIdentity);
 }