public function getPropertyName($property = self::LOGIN_PROPERTY, $strict = false)
    {
        if ($this->checkProperty($property, $strict)) {
            if (is_string($this->properties[$property])) {
                return $this->properties[$property];
            }
            if (isset($this->lazyPropertyNameCache[$property])) {
                return $this->lazyPropertyNameCache[$property];
            }

            return $this->lazyPropertyNameCache[$property] = $this->properties[$property]->getName();
        }
    }
public function getPropertyName($property = self::LOGIN_PROPERTY, $strict = false)
    {
        if ($this->checkProperty($property, $strict)) {
            if (is_string($this->properties[$property])) {
                return $this->properties[$property];
            }
            if (isset($this->lazyPropertyNameCache[$property])) {
                return $this->lazyPropertyNameCache[$property];
            }

            return $this->lazyPropertyNameCache[$property] = $this->properties[$property]->getName();
        }
    }
public function getPropertyName ( $ property = self :: LOGIN_PROPERTY , $ strict = false ) { if ( $ this -> checkProperty ( $ property , $ strict ) ) { if ( is_string ( $ this -> properties [ $ property ] ) ) { return $ this -> properties [ $ property ] ; } if ( isset ( $ this -> lazyPropertyNameCache [ $ property ] ) ) { return $ this -> lazyPropertyNameCache [ $ property ] ; } return $ this -> lazyPropertyNameCache [ $ property ] = $ this -> properties [ $ property ] -> getName ( ) ; } }
Gets the name of a specific property by its metadata constant.

@param string $property
@param bool   $strict

@return null|string
Gets the name of a specific property by its metadata constant .