public function save($directory)
    {
        $parts = explode('_', $this->getClass());
        array_unshift($parts, $directory);
        $path = join(DIRECTORY_SEPARATOR, $parts) . '.php';
        self::saveToFile($path, $this->getSrc());
    }