public function getProcessId()
    {
        if (null === $this->processId) {
            $content = fgets($this->getFileResource());
            $pieces = explode(PHP_EOL, trim($content));
            $this->processId = reset($pieces) ?: 0;
        }

        return $this->processId ?: null;
    }
public function getProcessId()
    {
        if (null === $this->processId) {
            $content = fgets($this->getFileResource());
            $pieces = explode(PHP_EOL, trim($content));
            $this->processId = reset($pieces) ?: 0;
        }

        return $this->processId ?: null;
    }
public function getProcessId ( ) { if ( null === $ this -> processId ) { $ content = fgets ( $ this -> getFileResource ( ) ) ; $ pieces = explode ( PHP_EOL , trim ( $ content ) ) ; $ this -> processId = reset ( $ pieces ) ? : 0 ; } return $ this -> processId ? : null ; }
Returns Pidfile content with the PID or NULL when there is no stored PID.

@return int|null
Returns Pidfile content with the PID or NULL when there is no stored PID .