AppserverIo\Appserver\Core\Api\Node\ExtractorNode::getPrimaryKey PHP Method

getPrimaryKey() public method

Returns the nodes primary key, the name by default.
See also: AppserverIo\Appserver\Core\Api\Node\AbstractNode::getPrimaryKey()
public getPrimaryKey ( ) : string
return string The nodes primary key
    public function getPrimaryKey()
    {
        return $this->getName();
    }

Usage Example

Esempio n. 1
0
 /**
  * Initializes the default extractors for archive based deployment.
  *
  * @return void
  */
 protected function initDefaultExtractors()
 {
     // initialize the extractor
     $pharExtractor = new ExtractorNode('phar', 'AppserverIo\\Appserver\\Core\\Extractors\\PharExtractor', 'AppserverIo\\Appserver\\Core\\Extractors\\PharExtractorFactory');
     // add extractor to the appserver node
     $this->extractors[$pharExtractor->getPrimaryKey()] = $pharExtractor;
 }