src/Analysis.php
public function split()
    {
        $result = new stdClass();
        $result->merged = $this->merged();
        $result->unmerged = new Analysis();
        foreach ($this->annotations as $annotation) {
            if ($result->merged->annotations->contains($annotation) === false) {
                $result->unmerged->annotations->attach($annotation, $this->annotations[$annotation]);
            }
        }

        return $result;
    }
public function split()
    {
        $result = new stdClass();
        $result->merged = $this->merged();
        $result->unmerged = new Analysis();
        foreach ($this->annotations as $annotation) {
            if ($result->merged->annotations->contains($annotation) === false) {
                $result->unmerged->annotations->attach($annotation, $this->annotations[$annotation]);
            }
        }

        return $result;
    }
public function split ( ) { $ result = new stdClass ( ) ; $ result -> merged = $ this -> merged ( ) ; $ result -> unmerged = new Analysis ( ) ; foreach ( $ this -> annotations as $ annotation ) { if ( $ result -> merged -> annotations -> contains ( $ annotation ) === false ) { $ result -> unmerged -> annotations -> attach ( $ annotation , $ this -> annotations [ $ annotation ] ) ; } } return $ result ; }
Split the annotation into two analysis.
One with annotations that are merged and one with annotations that are not merged.

@return object {merged: Analysis, unmerged: Analysis}
Split the annotation into two analysis . One with annotations that are merged and one with annotations that are not merged .