<commit_before><?php
/**
 * @author <EMAIL>
 * (c) ABOUT YOU GmbH
 */

namespace AboutYou\SDK\Model;

use AboutYou\SDK\Constants;
use AboutYou\SDK\Factory\ModelFactoryInterface;

class Variant
{
    protected $jsonObject;

    /**
     * @var Image[]|null
     */
    protected $images = null;

    /**
     * @var FacetGroupSet
     */
    protected $facetGroups;

    /**
     * @var ModelFactoryInterface
     */
    private $factory;

    /**
     * @var Product
     */
    protected $product;

    /**
     * @var Material[]|null
     */
    protected $materials;

    /**
     * @var Image
     */
    protected $selectedImage = null;

    protected function __construct()
    {
    }

    /**
     * @param \stdClass             $jsonObject
     * @param ModelFactoryInterface $factory
     * @param Product               $product
     *
     * @return static
     */
    public static function createFromJson(\stdClass $jsonObject, ModelFactoryInterface $factory, Product $product)
    {
        $variant = new static();

        $variant->factory = $factory;
        $variant->jsonObject = $jsonObject;
        $variant->product = $product;

        return $variant;
    }

    /**
     * @return integer
     */
    public function getId()
    {
        return $this->jsonObject->id;
    }

    /**
     * @return string
     */
    public function getAboutNumber()
    {
        return isset($this->jsonObject->about_number) ?
            $this->jsonObject->about_number :
            null;
    }

    /**
     *
     */
    public function getMerchantProductId()
    {
        return isset($this->jsonObject->merchant_product_id) ?
            $this->jsonObject->merchant_product_id :
            null;
    }

    /**
     * @return Product
     */
    public function getProduct()
    {
        return $this->product;<commit_msg>AYD-7762 added missing doc comment<commit_after><?php
/**
 * @author <EMAIL>
 * (c) ABOUT YOU GmbH
 */

namespace AboutYou\SDK\Model;

use AboutYou\SDK\Constants;
use AboutYou\SDK\Factory\ModelFactoryInterface;

class Variant
{
    protected $jsonObject;

    /**
     * @var Image[]|null
     */
    protected $images = null;

    /**
     * @var FacetGroupSet
     */
    protected $facetGroups;

    /**
     * @var ModelFactoryInterface
     */
    private $factory;

    /**
     * @var Product
     */
    protected $product;

    /**
     * @var Material[]|null
     */
    protected $materials;

    /**
     * @var Image
     */
    protected $selectedImage = null;

    protected function __construct()
    {
    }

    /**
     * @param \stdClass             $jsonObject
     * @param ModelFactoryInterface $factory
     * @param Product               $product
     *
     * @return static
     */
    public static function createFromJson(\stdClass $jsonObject, ModelFactoryInterface $factory, Product $product)
    {
        $variant = new static();

        $variant->factory = $factory;
        $variant->jsonObject = $jsonObject;
        $variant->product = $product;

        return $variant;
    }

    /**
     * @return integer
     */
    public function getId()
    {
        return $this->jsonObject->id;
    }

    /**
     * @return string
     */
    public function getAboutNumber()
    {
        return isset($this->jsonObject->about_number) ?
            $this->jsonObject->about_number :
            null;
    }

    /**
     * @return string
     */
    public function getMerchantProductId()
    {
        return isset($this->jsonObject->merchant_product_id) ?
            $this->jsonObject->merchant_product_id :
            null;
    }

    /**
     * @return Product
     */
    public function getProduct()
    {
        return $this->product;
{'fraction_non_alphanumeric': 0.1246641590542719, 'fraction_numerical': 0.0010746910263299302, 'mean_word_length': 1.8376524390243902, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 33, 'https://': 0, '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': '108906', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1062, 'n_words': 219}