src/modules/Jira/IssueFile.php
/**
     * Creates a new file if it did not exist,
     * or returns data from the file if it exists
     *
     * @param                      $fileName
     * @param JiraWebhookData|null $jiraWebhookData
     * @param null|int             $lastCommentTime in seconds
     * @param null|int             $lastNotification in seconds
     *
     * @return mixed|IssueFile
     */
Creates a new file if it did not exist,
or returns data from the file if it exists

@param                      $fileName
@param JiraWebhookData|null $jiraWebhookData
@param null|int             $lastCommentTime in seconds
@param null|int             $lastNotification in seconds


Creates a new file if it did not exist or returns data from the file if it exists @param $fileName @param JiraWebhookData|null $jiraWebhookData @param null|int $lastCommentTime in seconds @param null|int $lastNotification in seconds
public static function create(
        $fileName,
        JiraWebhookData $jiraWebhookData,
        $lastCommentTime = null,
        $lastNotification = null)
    {
        $issueFile = new self($fileName, $jiraWebhookData, $lastCommentTime, $lastNotification);
        $pathToFile = self::getPathToFile($issueFile);
        if (file_exists($pathToFile)) {
            $issueFile = self::get(basename($pathToFile));
        } else {
            self::put($issueFile);
        }
        return $issueFile;
    }
public static function create ( $ fileName , JiraWebhookData $ jiraWebhookData , $ lastCommentTime = null , $ lastNotification = null ) { $ issueFile = new self ( $ fileName , $ jiraWebhookData , $ lastCommentTime , $ lastNotification ) ; $ pathToFile = self :: getPathToFile ( $ issueFile ) ; if ( file_exists ( $ pathToFile ) ) { $ issueFile = self :: get ( basename ( $ pathToFile ) ) ; } else { self :: put ( $ issueFile ) ; } return $ issueFile ; }
Creates a new file if it did not exist,
 or returns data from the file if it exists
Creates a new file if it did not exist or returns data from the file if it exists