Attributes for a factory

@param string $name name of the factory

@return mixed attributes
426500
public static function attributes_for($name) 
    {
        self::load();
        $data = self::get($name);
        if (!$data) {
            return null;
        }
        return $data;
    }
1211692
public function getFactory($name)
    {
        if (!isset($this->factories[$name])) {
            throw new \RuntimeException(sprintf('No factory registered with name "%s"', $name));
        }

        return $this->factories[$name];
    }
880400
final protected function getAttribute($name)
    {
        if (isset($this->internalCache[$name])) {
            return $this->internalCache[$name];
        }
        if (isset($this->data[$name])) {
            return $this->data[$name];
        }

        return null;
    }
1097054
public function get($name)
    {
        if (isset($this->factories[$name])) {
            return $this->factories[$name];
        }

        throw JobFactoryException::create(sprintf('Not found %s job factory', $name));
    }
1163225
public function getAttribute($name)
    {
        if (isset($this->attributes[$name])) {
            return $this->attributes[$name] instanceof Binding ? $this->attributes[$name]->getValue() : $this->attributes[$name];
        } else {
            return null;
        }
    }
374029
public function &getAttributeByName($name)
    {
        if (!isset( $this->attributes[$name] )) {
            throw new \RuntimeException( 'An attribute by the name of \'' . $name . '\' could not be located on the \'' . $this->getName() . '\' entity.' );
        }

        return $this->attributes[$name];
    }
273435
public function attribute($name)
    {
        if (isset($this->properties[$name])) {
            return $this->object->$name;
        }

        $getterName = 'get' . ucfirst($name);
        if (isset($this->getters[$getterName])) {
            return $this->object->$getterName();
        }

        throw new \InvalidArgumentException("Unsupported attribute '$name' for " . \get_class($this->object));
    }
1139390
protected function getModelValueAttribute($name)
    {
        $key = $this->transformKey($name);

        if (method_exists($this->model, 'getFormValue')) {
            return $this->model->getFormValue($key);
        }

        return data_get($this->model, $this->transformKey($name));
    }
167144
public function getParameterValue($name)
    {
        return (isset($this->attributes[$name])) ? $this->attributes[$name] : null;
    }
334180
public function getAttribute($attributes, $name) {
        foreach($attributes as $a) {
            if ($a->key == $name) {
                return $a->value;
            }
        }
        return null;
    }
48989
function attribute( $name )
    {
        switch ( $name )
        {
            case "item":
            case "key":
            case "index":
            case "number":
            case "sequence":
            case "last":
                return $this->InternalAttributes[$name];
        }
        $item = $this->InternalAttributes['item'];
        if ( is_array( $item ) )
        {
            return $item[$name];
        }
        if ( is_object( $item ) && method_exists( $item, 'attribute' ) )
        {
            return $item->attribute( $name );
        }
        eZDebug::writeError( "Attribute '$name' does not exist", __METHOD__ );
        return null;
    }
730298
protected function adapterFactory(string $name): AdapterInterface
	{
		$factory = $this->adapterFactories[$name];

		return $this->adapters[$name] = $factory();
	}
647162
public function get($name)
    {
        if (!isset($this->indexed[$name])) {
            return null;
        }
        if (empty($this->indexed[$name])) {
            $this->indexed[$name] = $this->factory->target($name);
        }
        return $this->indexed[$name];
    }
799419
public function getFactory($name)
    {
        if (isset($this->factories[$name])) {
            return $this->factories[$name];
        }

        throw new SourceDataException(sprintf('Mapper source data factory %s not found!', $name));
    }
25794
private function build($name)
    {
        if (!array_key_exists($name, $this->factories)) {
            throw new NotFoundException("Missing value: $name");
        }

        $factory = $this->factories[$name];

        if (is_callable($factory)) {
            try {
                return call_user_func($factory, $this);
            } catch (\Exception $e) {
                throw new ValueUnresolvableException("Factory for '$name' threw an exception.", 0, $e);
            }
        }

        $msg = "Factory for '$name' was uncallable";
        if (is_string($factory)) {
            $msg .= ": '$factory'";
        } elseif (is_array($factory)) {
            if (is_string($factory[0])) {
                $msg .= ": '{$factory[0]}::{$factory[1]}'";
            } else {
                $msg .= ": " . get_class($factory[0]) . "->{$factory[1]}";
            }
        }
        throw new FactoryUncallableException($msg);
    }
764497
private function factory($name)
    {
        $factory = FabricateFactory::create(self::getInstance()->registry->find($name));
        $factory->setConfig(self::getInstance()->config);
        return $factory;
    }
1313619
public function getAttribute( $name ) {
        if( key_exists( $name, $this->attrs ) ) {
            return $this->attrs[$name];
        } else {
            return null;
        }
    }