public function setProject($project)
    {
        if ($project instanceof Project) {
            $this->project = $project->getSlug();

            return $this;
        }

        $this->project = (string) $project;

        return $this;
    }
public function setProject($project)
    {
        if ($project instanceof Project) {
            $this->project = $project->getSlug();

            return $this;
        }

        $this->project = (string) $project;

        return $this;
    }
public function setProject ( $ project ) { if ( $ project instanceof Project ) { $ this -> project = $ project -> getSlug ( ) ; return $ this ; } $ this -> project = ( string ) $ project ; return $ this ; }
Set the project.

@param Project|string $project The project or project slug.

@return \CyberSpectrum\Transifex\TranslationResource
Set the project .