public function transform($w)
    {
        $class = $this->cls->classify(
            $this->classes,
            new RawDocument($w)
        );

        foreach ($this->transforms[$class] as $t) {
            $w = $t->transform($w);
        }

        return $w;
    }
public function transform($w)
    {
        $class = $this->cls->classify(
            $this->classes,
            new RawDocument($w)
        );

        foreach ($this->transforms[$class] as $t) {
            $w = $t->transform($w);
        }

        return $w;
    }
public function transform ( $ w ) { $ class = $ this -> cls -> classify ( $ this -> classes , new RawDocument ( $ w ) ) ; foreach ( $ this -> transforms [ $ class ] as $ t ) { $ w = $ t -> transform ( $ w ) ; } return $ w ; }
Classify the passed in variable w and then apply each transformation
to the output of the previous one.
Classify the passed in variable w and then apply each transformation to the output of the previous one .