lib/Benchmark/Metadata/BenchmarkMetadata.php
public function getOrCreateSubject($name)
    {
        if (isset($this->subjects[$name])) {
            return $this->subjects[$name];
        }

        $this->subjects[$name] = new SubjectMetadata($this, $name);

        return $this->subjects[$name];
    }
public function getOrCreateSubject($name)
    {
        if (isset($this->subjects[$name])) {
            return $this->subjects[$name];
        }

        $this->subjects[$name] = new SubjectMetadata($this, $name);

        return $this->subjects[$name];
    }
public function getOrCreateSubject ( $ name ) { if ( isset ( $ this -> subjects [ $ name ] ) ) { return $ this -> subjects [ $ name ] ; } $ this -> subjects [ $ name ] = new SubjectMetadata ( $ this , $ name ) ; return $ this -> subjects [ $ name ] ; }
Get or create a new SubjectMetadata instance with the given name.

@param string $name

@return SubjectMetadata
Get or create a new SubjectMetadata instance with the given name .