lib/PHPPdf/Core/ComplexAttribute/ComplexAttributeFactory.php
public function create($name, array $parameters = array())
    {
        $key = $this->getInstanceKey($name, $parameters);
        
        if(!isset($this->instances[$key]))
        {
            $this->instances[$key] = $this->createInstance($name, $parameters);
        }
        
        return $this->instances[$key];
    }
public function create($name, array $parameters = array())
    {
        $key = $this->getInstanceKey($name, $parameters);
        
        if(!isset($this->instances[$key]))
        {
            $this->instances[$key] = $this->createInstance($name, $parameters);
        }
        
        return $this->instances[$key];
    }
public function create ( $ name , array $ parameters = array ( ) ) { $ key = $ this -> getInstanceKey ( $ name , $ parameters ) ; if ( ! isset ( $ this -> instances [ $ key ] ) ) { $ this -> instances [ $ key ] = $ this -> createInstance ( $ name , $ parameters ) ; } return $ this -> instances [ $ key ] ; }
Return instance of ComplexAttribute registered under passed named and parameters.

Internally this method uses Flyweight pattern to reuse complexAttribute's objects

@param string $name Name of complexAttribute
@param array $parameters Parameters of complexAttribute

@return PHPPdf\Core\ComplexAttribute\ComplexAttribute
Return instance of ComplexAttribute registered under passed named and parameters .