protected function getFileResource()
    {
        if (null === $this->fileResource) {
            $fileResource = @fopen($this->getFileName(), 'a+');
            if (! $fileResource) {
                throw new RuntimeException('Could not open pidfile');
            }
            $this->fileResource = $fileResource;
        }

        return $this->fileResource;
    }
protected function getFileResource()
    {
        if (null === $this->fileResource) {
            $fileResource = @fopen($this->getFileName(), 'a+');
            if (! $fileResource) {
                throw new RuntimeException('Could not open pidfile');
            }
            $this->fileResource = $fileResource;
        }

        return $this->fileResource;
    }
protected function getFileResource ( ) { if ( null === $ this -> fileResource ) { $ fileResource = @ fopen ( $ this -> getFileName ( ) , 'a+' ) ; if ( ! $ fileResource ) { throw new RuntimeException ( 'Could not open pidfile' ) ; } $ this -> fileResource = $ fileResource ; } return $ this -> fileResource ; }
Returns the Pidfile file resource.

@return resource
Returns the Pidfile file resource .