Submission_Value::get_submission()

Returns the parent submission for the submission value.

Description

See also

Return

(awsmug\Torro_Forms\DB_Objects\Submissions\Submission|null) Parent submission, or null if none set.

Source

File: src/db-objects/submission-values/submission-value.php

	public function get_submission() {
		if ( empty( $this->submission_id ) ) {
			return null;
		}

		return $this->manager->get_parent_manager( 'submissions' )->get( $this->submission_id );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.