src/Charcoal/App/AppConfig.php
public function setProjectName($projectName)
    {
        if ($projectName === null) {
            $this->projectName = null;
            return $this;
        }
        if (!is_string($projectName)) {
            throw new InvalidArgumentException(
                'Project name must be a string'
            );
        }

        $this->projectName = $projectName;
        return $this;
    }
public function setProjectName($projectName)
    {
        if ($projectName === null) {
            $this->projectName = null;
            return $this;
        }
        if (!is_string($projectName)) {
            throw new InvalidArgumentException(
                'Project name must be a string'
            );
        }

        $this->projectName = $projectName;
        return $this;
    }
public function setProjectName ( $ projectName ) { if ( $ projectName === null ) { $ this -> projectName = null ; return $ this ; } if ( ! is_string ( $ projectName ) ) { throw new InvalidArgumentException ( 'Project name must be a string' ) ; } $ this -> projectName = $ projectName ; return $ this ; }
Sets the project name.

@param string|null $projectName The project name.
@throws InvalidArgumentException If the project argument is not a string (or null).
@return self
Sets the project name .