<commit_before><?php

namespace Orchestra\Tenanti\Eloquent;

use Orchestra\Tenanti\Tenantor;

trait Tenantee
{
    /**
     * Construct a new tenant.
     *
     * @param \Orchestra\Tenanti\Tenantor $tenantor
     *
     * @return static
     */
    public static function tenant(Tenantor $tenantor)
    {
        return (new static())->setTenantor($tenantor);
    }

    /**
     * Get the tenantor associated with the model.
     *
     * @throws \InvalidArgumentException
     *
     * @return \Orchestra\Tenanti\Tenantor|null
     */
    public function getTenantor()
    {
        return $this->tenantor;
    }

     /**
     * Get the tenantor associated with the model.
     *
     * @param \Orchestra\Tenanti\Tenantor $tenantor
     *
     * @return $this
     */
    public function setTenantor(Tenantor $tenantor)
    {
        $this->tenantor = $tenantor;
        $this->connection = $tenantor->getConnectionName();

        $this->setTable($this->getTenantTable());

        return $this;
    }

    /**
     * Get tenant table name.
     *
     * @throws \InvalidArgumentException
     *
     * @return string
     */
    abstract public function getTenantTable(): string;
}<commit_msg>Return self.<commit_after><?php

namespace Orchestra\Tenanti\Eloquent;

use Orchestra\Tenanti\Tenantor;

trait Tenantee
{
    /**
     * Construct a new tenant.
     *
     * @param \Orchestra\Tenanti\Tenantor $tenantor
     *
     * @return static
     */
    public static function tenant(Tenantor $tenantor)
    {
        return (new static())->setTenantor($tenantor);
    }

    /**
     * Get the tenantor associated with the model.
     *
     * @throws \InvalidArgumentException
     *
     * @return \Orchestra\Tenanti\Tenantor|null
     */
    public function getTenantor()
    {
        return $this->tenantor;
    }

     /**
     * Get the tenantor associated with the model.
     *
     * @param \Orchestra\Tenanti\Tenantor $tenantor
     *
     * @return $this
     */
    public function setTenantor(Tenantor $tenantor): self
    {
        $this->tenantor = $tenantor;
        $this->connection = $tenantor->getConnectionName();

        $this->setTable($this->getTenantTable());

        return $this;
    }

    /**
     * Get tenant table name.
     *
     * @throws \InvalidArgumentException
     *
     * @return string
     */
    abstract public function getTenantTable(): string;
}
{'fraction_non_alphanumeric': 0.11818560133166875, 'fraction_numerical': 0.0, 'mean_word_length': 2.1465968586387434, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '326224', 'n_tokens_mistral': 741, 'n_tokens_neox': 753, 'n_words': 154}