Gets the member attribute.

@return Member|null The member attribute.
477
public function getMemberAttribute()
    {
        $guild = $this->discord->guilds->get('id', $this->guild_id);

        return $guild->members->get('id', $this->user_id);
    }
17867
public function getEntityIdAttribute()
    {
        if ($this->attributes['data'] == '' || $this->attributes['type'] != 'entity')
            return null;

        $data = unserialize($this->attributes['data']);

        if (!isset($data['entity_type']))
            return null;
        else {
            $entity_type = explode(':', $data['entity_type']);

            return isset($entity_type[1]) ? $entity_type[1] : null;
        }
    }
640007
public function get_gradinginstance() {
        if (is_array($this->gradingattributes) && array_key_exists('gradinginstance', $this->gradingattributes)) {
            return $this->gradingattributes['gradinginstance'];
        } else {
            return null;
        }
    }
186942
public CodeAttribute getCode()
  {
    for (int i = 0; i < _attributes.size(); i++) {
      Attribute attr = _attributes.get(i);

      if (attr instanceof CodeAttribute)
        return (CodeAttribute) attr;
    }

    return null;
  }
797278
public function getAssoc()
	{
		static $assoc = null;

		if (!is_null($assoc))
		{
			return $assoc;
		}

		$extension = $this->getState('category.extension');

		$assoc = JLanguageAssociations::isEnabled();
		$extension = explode('.', $extension);
		$component = array_shift($extension);
		$cname = str_replace('com_', '', $component);

		if (!$assoc || !$component || !$cname)
		{
			$assoc = false;
		}
		else
		{
			$hname = $cname . 'HelperAssociation';
			JLoader::register($hname, JPATH_SITE . '/components/' . $component . '/helpers/association.php');

			$assoc = class_exists($hname) && !empty($hname::$category_association);
		}

		return $assoc;
	}
233019
public function members() : array
    {
        $members = [];

        if (!isset($this->info()->threadMembers) || $this->info()->threadMembers <= 0) return null;

        foreach ($this->info()->threadMembers as $member) {
            $members[] = new User($this->client, $member->onlineId);
        }

        return $members;
    }
63373
public function Init()
	{
		// If the $memberNodes is null then it is the first time and the member needs to be located
		if ( is_null( $this->memberPath ) )
		{
			/**
			 * @var \XBRL $taxonomy
			 */
			$taxonomy = $this->context->xbrlTaxonomy;

			// The primary item must be valid
			$piElement = $taxonomy->getElementByName( $this->primaryItem->LocalName );
			if ( ! $piElement )
			{
				// V13 requires an error
				throw XPath2Exception::withErrorCode( "xfie:invalidPrimaryItemConceptQName", "The primary item must exist in the member network" );
			}
			else if ( $piElement['substitutionGroup'] != \XBRL_Constants::$xbrliItem )
			{
				// Test V11
				$this->memberPath = "";
				return null;
			}

			$primaryItemName = "{$taxonomy->getTaxonomyXSD()}#{$piElement['id']}";

			if ( $this->linkRole instanceof Undefined || empty( $this->linkRole ) )
			{
				$primaryItems = $taxonomy->getDefinitionPrimaryItems( false );
				if ( ! isset( $primaryItems[ $primaryItemName ] ) )
				{
					$this->memberPath = "";
					$this->candidates = array();
					return null;
				}

				// $this->linkRole = $primaryItems[ $primaryItemName ]['roles'][0];
				$primaryItem = $primaryItems[ $primaryItemName ];
			}
			else
			{
				$primaryItems = $taxonomy->getDefinitionRolePrimaryItems( $this->linkRole );
				// BMS 2018-02-13 Throwing an error here is not appropriate.
				//				  The concept may not be a primary item in the network
				//				  but that just means there are no candidate members.
				if ( ! isset( $primaryItems[ $primaryItemName ] ) )
				{
					$this->memberPath = "";
					$this->candidates = array();
					return null;
				}
				$primaryItem = array( $this->linkRole => $primaryItems[ $primaryItemName ], 'roles' => array( $this->linkRole ) );
			}

			// if ( ! isset( $primaryItems[ $primaryItemName ] ) )
			// {
			// 	throw XPath2Exception::withErrorCode( "xfie:invalidPrimaryItemConceptQName", "The primary item must exist in the member network" );
			// }

			// Obtain the DRS
			$drs = $taxonomy->getPrimaryItemDRS( $primaryItem );

			// Check the dimension supplied is valid
			$dimTaxonomy = $taxonomy->getTaxonomyForNamespace( $this->dimension->NamespaceUri );
			if ( ! $dimTaxonomy )
			{
				throw XPath2Exception::withErrorCode( "xfie:invalidDimensionQName", "The dimension must exist in the member network" );
			}

			// The dimension reference MUST be valid
			$dimElement = $dimTaxonomy->getElementByName( $this->dimension->LocalName );
			if ( ! $dimElement )
			{
				// Test V12 requires an error
				throw XPath2Exception::withErrorCode( "xfie:invalidDimensionQName", "The dimension must exist in the member network" );
			}
			else if ( $dimElement['substitutionGroup'] != "xbrldt:dimensionItem" )
			{
				// Test V09 requires empty result
				$this->memberPath = "";
				return null;
			}

			// Make sure the requested member is one of the members
			$memTaxonomy = $taxonomy->getTaxonomyForNamespace( $this->member->NamespaceUri );
			$memElement = $dimTaxonomy->getElementByName( $this->member->LocalName );
			if ( ! $memElement )
			{
				$this->memberPath = "";
				return null;
			}

			$dimensionName = "{$dimTaxonomy->getTaxonomyXSD()}#{$dimElement['id']}";
			$memberName = "{$memTaxonomy->getTaxonomyXSD()}#{$memElement['id']}";
			$memberPaths = array();

			// Locate the dimension among the hypercubes
			foreach ( $drs as $hyprcubeId => $linkRoles )
			{
				foreach ( $linkRoles as $linkRole => $hypercube)
				{
					// Only use the link role provided if one is provided. Otherwise use all roles.
					if ( ! empty( $this->linkRole ) && $this->linkRole != $linkRole ) continue;

					$memberPaths = array_merge( $memberPaths, $hypercube['dimensions'][ $dimensionName ]['memberpaths'] );
				}
			}

			if ( ! $memberPaths )
			{
				$this->memberPath = "";
				return null;
			}

			if ( ! isset( $memberPaths[ $memElement['id'] ] ) )
			{
				$this->memberPath = "";
				return null;
			}

			$memberPath = null;
			foreach ( $memberPaths[ $memElement['id'] ] as $path )
			{
				if ( strpos( $path, $memberName ) !== false )
				{
					$memberPath = $path;
					break;
				}
			}

			if ( is_null( $memberPath ) )
			{
				return null;
			}

			foreach ( $memberPaths as $paths )
			{
				foreach ( $paths as $path )
				{
					// Remove self
					if ( $path == $memberPath ) continue;

					$pos = strpos( $path, $memberPath );
					if ( $pos === false || $pos != 0 ) continue;
					$this->candidates[] = $path;
				}
			}

			$this->memberPath = $memberPath;
			$this->index = 0;
		}
	}
1310976
protected function getModeratedByAttributeValue(): ?int
    {
        $user = Yii::$app->get('user', false);

        return $user && !$user->isGuest ? $user->id : null;
    }
674915
public function getUserAttribute()
    {
        if($this->createdByUserID) {

            // search in cache
            $user = User::where('userID', $this->createdByUserID)->first();

            // search in database
            if (!$user) {
                $user = $this->getRelationValue('user');
            }
            return $user;
        }
        return null;
    }
770178
public function getLegend()
    {
        return (isset($this->fieldsets[$this->current])) ?
            $this->fieldsets[$this->current]->getLegend() : null;
    }
911745
public function getAttribute($name)
	{
		return isset($this->attrs[$name]) ? $this->attrs[$name] : NULL;
	}
18535
public function getMemberFields(Member $member = null)
    {
        if (!$member) {
            $member = Security::getCurrentUser();
        }
        $result = array();

        if ($member) {
            foreach ($member->summaryFields() as $field => $title) {
                $result[$field] = $member->$field;
            }
        }

        if ($member && !array_key_exists('Name', $result)) {
            $result['Name'] = $member->getName();
        }

        return $result;
    }
470661
public function getType()
    {
        $type = null;
        if (($parent = $this->getParent()) instanceof ElementHandler && $parent->hasAttribute(self::ATTRIBUTE_TYPE)) {
            $type = $parent->getAttribute(self::ATTRIBUTE_TYPE)->getValue(false, false);
        }
        return $type;
    }
1301939
public function getClass()
    {
        if (is_null($this->_class)) {
            $this->_class = $this->_getClassName();
        }
        return $this->_class;
    }
818269
public function getValue()
    {
        return ($this->value !== null && $this->value !== '') ? $this->value : $this->getAttribute('default');
    }
1076642
private function getUserEntityClass()
    {
        /** @var ClassMetadata $meta */
        foreach ($this->getDoctrine()->getManager()->getMetadataFactory()->getAllMetadata() as $meta) {
            $reflectionClass = $meta->getReflectionClass();

            if (true === $this->hasAbstractParent($reflectionClass, User::class)) {
                return $meta->getName();
            }
        }

        return null;
    }
548534
public function getAltAttribute()
    {
        $data = unserialize($this->attributes['data']);

        return $data === false ? null : (isset($data['alt']) ? $data['alt'] : null);
    }