protected function populateStub($stub, $className, $interface)
    {
        $stub = str_replace('ProxyClass', $className, $stub);
        $stub = str_replace('ProxyInterface', '\\'.$interface, $stub);

        $stub = str_replace('// ## Implemented Methods ##', $this->getMethodDefinitions($interface), $stub);

        return $stub;
    }