<commit_before><?php
namespace Edu\Cnm\BrewCrew;

require_once("autoload.php");

/**
 * Class BeerTag
 * 
 * This class contains everything for a user to be able to link beer flavor tags with the beers that they drink
 * 
 * @author <NAME> <<EMAIL>>
 **/
class BeerTag implements \JsonSerializable {
	/**
	 * this is the Id for this beer that this beer tag refers to, this is the foreign key
	 * @var int $beerTagBeerId
	 **/
	private $beerTagBeerId;
	/**
	 * this is the Id for this tag that was applied to this specific beer tag, this is a foreign key
	 * @var int $beerTagTagId
	 **/
	private $beerTagTagId;

	/**
	 * Constructor for class BeerTag
	 * @param int $newBeerTagBeerId new value of beer tag beer Id
	 * @param int $newBeerTagTagId new value of the tag id assigned to this beer
	 * @throws \InvalidArgumentException if the data types are not valid
	 * @throws \RangeException if data values are not positive
	 * @throws \TypeError if the data entered is the incorrect type
	 * @throws \Exception if any other type of errors occur
	 **/
	public function __construct(int $newBeerTagBeerId, int $newBeerTagTagId) {
		try {
			$this->setBeerTagBeerId($newBeerTagBeerId);
			$this->setBeerTagTagId($newBeerTagTagId);
		} catch(\InvalidArgumentException $InvalidArgument) {
			//rethrow the exception to the caller
			throw(new \InvalidArgumentException($InvalidArgument->getMessage(), 0, $InvalidArgument));
		} catch(\RangeException $range) {
			//rethrow the exception to the caller
			throw (new \RangeException($range->getMessage(), 0, $range));
		} catch(\TypeError $typeError) {
			//rethrow exception to the caller
			throw(new \TypeError($typeError->getMessage(), 0, $typeError));
		} catch(\ Exception $exception) {
			//rethrow the exception to the caller
			throw (new \Exception($exception->getMessage(), 0, $exception));
		}
	}
	/**
	 * accessors and mutators for class beerTag
	 */
	/**
	 * accessor method for beerTagBeerId
	 * @return int value of beerTag beer Id, foreign key
	 **/
	public function getBeerTagBeerId() {
		return ($this->beerTagBeerId);
	}

	/**
	 * mutator method for beerTag beerId
	 * @param int $newBeerTagBeerId 
	 * @throws \RangeException if $newBeerTagBeerId is not positive
	 * @throws \TypeError if $newBeerTagBeerId is not an integer
	 **/
	public function setBeerTagBeerId($newBeerTagBeerId) {
		//verify the beer tag beer id content is positive
		if($newBeerTagBeerId <= 0) {
			throw (new \RangeException("beer tag beer id is not positive"));
		}
		// convert and store the new beer tag beer id
		$this->beerTagBeerId = $newBeerTagBeerId;
	}

	/**
	 * accessor method for beerTag TagId
	 * @return int value of beerTag tag Id, foreign key
	 **/
	public function getBeerTagTagId() {
		return ($this->beerTagTagId);
	}

	/**
	 * mutator method for beerTag tag Id<commit_msg>burning down the house https://app.asana.com/0/117423711360981/118830311351357<commit_after><?php
namespace Edu\Cnm\BrewCrew;

require_once("autoload.php");

/**
 * Class BeerTag
 * 
 * This class contains everything for a user to be able to link beer flavor tags with the beers that they drink
 * 
 * @author <NAME> <<EMAIL>>
 **/
class BeerTag implements \JsonSerializable {
	/**
	 * this is the Id for this beer that this beer tag refers to, this is the foreign key
	 * @var int $beerTagBeerId
	 **/
	private $beerTagBeerId;
	/**
	 * this is the Id for this tag that was applied to this specific beer tag, this is a foreign key
	 * @var int $beerTagTagId
	 **/
	private $beerTagTagId;

	/**
	 * Constructor for class BeerTag
	 * @param int $newBeerTagBeerId new value of beer tag beer Id
	 * @param int $newBeerTagTagId new value of the tag id assigned to this beer
	 * @throws \InvalidArgumentException if the data types are not valid
	 * @throws \RangeException if data values are not positive
	 * @throws \TypeError if the data entered is the incorrect type
	 * @throws \Exception if any other type of errors occur
	 **/
	public function __construct(int $newBeerTagBeerId, int $newBeerTagTagId) {
		try {
			$this->setBeerTagBeerId($newBeerTagBeerId);
			$this->setBeerTagTagId($newBeerTagTagId);
		} catch(\InvalidArgumentException $InvalidArgument) {
			//rethrow the exception to the caller
			throw(new \InvalidArgumentException($InvalidArgument->getMessage(), 0, $InvalidArgument));
		} catch(\RangeException $range) {
			//rethrow the exception to the caller
			throw (new \RangeException($range->getMessage(), 0, $range));
		} catch(\TypeError $typeError) {
			//rethrow exception to the caller
			throw(new \TypeError($typeError->getMessage(), 0, $typeError));
		} catch(\ Exception $exception) {
			//rethrow the exception to the caller
			throw (new \Exception($exception->getMessage(), 0, $exception));
		}
	}
	/**
	 * accessors and mutators for class beerTag
	 */
	/**
	 * accessor method for beerTagBeerId
	 * @return int value of beerTag beer Id, foreign key
	 **/
	public function getBeerTagBeerId() {
		return ($this->beerTagBeerId);
	}

	/**
	 * mutator method for beerTag beerId
	 * @param int $newBeerTagBeerId 
	 * @throws \RangeException if $newBeerTagBeerId is not positive
	 * @throws \TypeError if $newBeerTagBeerId is not an integer
	 **/
	public function setBeerTagBeerId(int $newBeerTagBeerId) {
		//verify the beer tag beer id content is positive
		if($newBeerTagBeerId <= 0) {
			throw (new \RangeException("beer tag beer id is not positive"));
		}
		// convert and store the new beer tag beer id
		$this->beerTagBeerId = $newBeerTagBeerId;
	}

	/**
	 * accessor method for beerTag TagId
	 * @return int value of beerTag tag Id, foreign key
	 **/
	public function getBeerTagTagId() {
		return ($this->beerTagTagId);
	}

	/**
	 * mutator method for beerTag tag Id
{'fraction_non_alphanumeric': 0.10410480349344978, 'fraction_numerical': 0.007161572052401747, 'mean_word_length': 3.873191489361702, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 27, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '802991', 'n_tokens_mistral': 1929, 'n_tokens_neox': 1757, 'n_words': 624}