FeaturePhp/Generator/ExtendGenerator.php
private function getExtendableFile($specification) {
        $target = $specification->getTarget();
        if (!array_key_exists($target, $this->extendableFiles)) {
            if (!$specification->mayCreate())
                return null;
            $this->extendableFiles[$target] = $this->getExtendableFileFromSpecification($specification);
            $this->logFile->log(null, "added file \"{$specification->getTarget()}\"");
        }
        return $this->extendableFiles[$target];
    }
private function getExtendableFile($specification) {
        $target = $specification->getTarget();
        if (!array_key_exists($target, $this->extendableFiles)) {
            if (!$specification->mayCreate())
                return null;
            $this->extendableFiles[$target] = $this->getExtendableFileFromSpecification($specification);
            $this->logFile->log(null, "added file \"{$specification->getTarget()}\"");
        }
        return $this->extendableFiles[$target];
    }
private function getExtendableFile ( $ specification ) { $ target = $ specification -> getTarget ( ) ; if ( ! array_key_exists ( $ target , $ this -> extendableFiles ) ) { if ( ! $ specification -> mayCreate ( ) ) return null ; $ this -> extendableFiles [ $ target ] = $ this -> getExtendableFileFromSpecification ( $ specification ) ; $ this -> logFile -> log ( null , "added file \"{$specification->getTarget()}\"" ) ; } return $ this -> extendableFiles [ $ target ] ; }
Creates an extendable file from a specification.
If the extendable file was already created, returns the cached extendable file.
If the extendable file does not yet exist, create it if it may be created from
this specification.
@param \FeaturePhp\Specification\Specification $specification
@return \FeaturePhp\File\ExtendableFile
Creates an extendable file from a specification . If the extendable file was already created returns the cached extendable file . If the extendable file does not yet exist create it if it may be created from this specification .