protected function setApplicationName($applicationName)
    {
        if ($applicationName != strtolower($applicationName)) {
            throw new InvalidArgumentException('Application name should be lowercase');
        }
        if (preg_match('/[^a-z0-9]/', $applicationName)) {
            throw new InvalidArgumentException('Application name should contains only alphanumeric chars');
        }

        if (strlen($applicationName) > 16) {
            $message = 'Application name should be no longer than 16 characters';
            throw new InvalidArgumentException($message);
        }

        $this->applicationName = $applicationName;
    }
protected function setApplicationName($applicationName)
    {
        if ($applicationName != strtolower($applicationName)) {
            throw new InvalidArgumentException('Application name should be lowercase');
        }
        if (preg_match('/[^a-z0-9]/', $applicationName)) {
            throw new InvalidArgumentException('Application name should contains only alphanumeric chars');
        }

        if (strlen($applicationName) > 16) {
            $message = 'Application name should be no longer than 16 characters';
            throw new InvalidArgumentException($message);
        }

        $this->applicationName = $applicationName;
    }
protected function setApplicationName ( $ applicationName ) { if ( $ applicationName != strtolower ( $ applicationName ) ) { throw new InvalidArgumentException ( 'Application name should be lowercase' ) ; } if ( preg_match ( '/[^a-z0-9]/' , $ applicationName ) ) { throw new InvalidArgumentException ( 'Application name should contains only alphanumeric chars' ) ; } if ( strlen ( $ applicationName ) > 16 ) { $ message = 'Application name should be no longer than 16 characters' ; throw new InvalidArgumentException ( $ message ) ; } $ this -> applicationName = $ applicationName ; }
Defines application name.

@param string $applicationName The application name, used as pidfile basename.

@throws InvalidArgumentException When application name is not valid.
Defines application name .