public function addRequirement( Whip_Requirement $requirement ) {
		// Only allow unique entries to ensure we're not checking specific combinations multiple times.
		if ( $this->requirementExistsForComponent( $requirement->component() ) ) {
			return;
		}

		$this->requirements[] = $requirement;
	}
public function addRequirement( Whip_Requirement $requirement ) {
		// Only allow unique entries to ensure we're not checking specific combinations multiple times.
		if ( $this->requirementExistsForComponent( $requirement->component() ) ) {
			return;
		}

		$this->requirements[] = $requirement;
	}
public function addRequirement ( Whip_Requirement $ requirement ) { // Only allow unique entries to ensure we're not checking specific combinations multiple times. if ( $ this -> requirementExistsForComponent ( $ requirement -> component ( ) ) ) { return ; } $ this -> requirements [ ] = $ requirement ; }
Adds a requirement to the list of requirements if it doesn't already exist.

@param Whip_Requirement $requirement The requirement to add.
Adds a requirement to the list of requirements if it doesn t already exist .