Returns old attribute value

@param string $name Attribute name
@return mixed
962498
private function getOldAttribute($name)
    {
        if ($this->hasOldAttribute($name)) {
            $collection = $this->getOldAttributes();
            return $collection[$name];
        } else {
            // Error
        }
    }
702828
public function getAttribute($name, $default = null)
    {
        if ($this->hasAttribute($name)) {
            return $this->node->getAttribute($name);
        }

        return $default;
    }
891675
protected function getAttribute($name)
    {
        if (isset($this->data[$name])) {
            return $this->data[$name];
        }

        return null;
    }
420362
public function getAttribute($name)
    {
        $attributes = $this->getAttributes();

        if (isset($attributes[$name])) {
            return $attributes[$name];
        }

        return null;
    }
964381
public function old( $name ) {
		if ( ! $this->session ) {
			return null;
		}

		$payload = $this->session->get_old_input(
			$key = Utils::to_dots_key( $name )
		);

		if ( ! is_array( $payload ) ) {
			return $payload;
		}

		if ( ! in_array( $this->type, [ 'select', 'checkbox' ] ) ) {
			if ( ! isset( $this->payload[ $key ] ) ) {
				$this->payload[ $key ] = new Collection( $payload );
			}

			if ( ! empty( $this->payload[ $key ] ) ) {
				return $this->payload[ $key ]->shift();
			}
		}

		return $payload;
	}
698363
public function get($name)
    {
        if (!isset($this->attributes[$name])) {
            throw new OutOfBoundsException(sprintf(
                'The attribute "%s" was not defined.',
                $name
            ));
        }

        return $this->attributes[$name];
    }
979898
public function getAttribute($name)
    {
        foreach ($this->attributes as $attribute) {
            if ($attribute->getName() == $name) {
                return $attribute;
            }
        }

        return false;
    }
945123
public function previous($key = null)
    {
        if (is_null($key)) {
            return $this->oldAttributes;
        }

        return $this->oldAttributes[$key];
    }
1063509
public function getAttr(string $name)
    {
        if (!isset($this->attr[$name]))
        {
            return NULL;
        }

        return $this->attr[$name];
    }
348004
public function findAttribute($name)
    {
        foreach ($this->attributes as $attribute) {
            if ($attribute->getName() === $name) {
                return $attribute;
            }
        }

        return null;
    }
529238
public function getAttribute($name)
    {
        return array_key_exists($name, $this->data['data']) ? $this->data['data'][$name] : null;
    }
1172594
protected function _getAttributeValue($name)
    {
        if (!array_key_exists($name, $this->attributes)) {
            throw (new UnknownAttributeException("Programmer: Don't know how to retreive attribute `$name`."))
                ->addOffender($name);
        }

        if (!$this->getId()) {
            return $this->attributes[$name];
        }

        $this->initialize();

        return $this->attributes[$name];
    }
626438
public function getAttribute($name)
    {
        if (!count($this)) {
            throw new \InvalidArgumentException('The current node list is empty.');
        }
        $node = $this->getNode(0);
        return $node->hasAttribute($name) ? $node->getAttribute($name) : null;
    }
578773
public function get ($name)
	{
		
		// If the attribute doesn't exists
		
		if (!$this->attributeExists ($name))
		{
			throw new Exception (get_called_class () . '->' . $name . ' attribute does not exist!');
		}
		
		// If attribute getter isn't set or is disabled
		
		if (!$this->attributeGet ($name))
		{
			throw new Exception (get_called_class () . '->' . $name . ' attribute get is disabled!');
		}
		
		// If no attribute value is set
		
		if (!$this->attributeHasValue ($name))
		{
			
			// If there is a default set to value
			
			if (array_key_exists ('default', static::$attributes[$name]))
			{
				$this->iset ($name, static::$attributes[$name]['default'], FALSE);
			}
			
			// Else there is no value and no default
			
			else
			{
				throw new Exception (get_called_class () . '->' . $name . ' attribute isn\'t set and has no default value!');
			}
			
		}
		
		// Return value
		
		return $this->attributeValues[$name];
			
	}
853607
public function readAttribute($name) {
        $method = 'get' . ucfirst($name);
        if(method_exists($this, $method)) {
            return $this->$method();
        } else {
            return parent::readAttribute($name);
        }
    }
1361487
public function attribute($name)
    {
        $v = $this->attributes()->$name;
        if(!empty($v))
            return (string)$v;
    }
451914
public function getCleanValue($name)
    {
        if (array_key_exists($name, $this->_cleanData)) {
            return $this->_cleanData[$name];
        }
        foreach ($this->_getSiblingRows() as $r) {
            if (array_key_exists($name, $r->_cleanData)) {
                return $r->_cleanData[$name];
            }
        }
        return $this->__get($name);
    }