Storm\Core\Object\EntityMap::Identity PHP Method

Identity() final public method

{@inheritDoc}
final public Identity ( $Entity = null )
    public final function Identity($Entity = null)
    {
        if ($this->Identity === null) {
            $this->Identity = new Identity($this);
        }
        $IdentityData = [];
        if ($Entity !== null) {
            $this->VerifyEntity(__METHOD__, $Entity);
            foreach ($this->IdentityProperties as $Identifier => $IdentityProperty) {
                $IdentityData[$Identifier] = $IdentityProperty->GetValue($Entity);
            }
        }
        return $this->Identity->Another($IdentityData);
    }