<commit_before><?php

namespace Flagrow\Messaging\Models;

use Carbon\Carbon;
use Flarum\Core\User;
use Illuminate\Database\Eloquent\Model;

/**
 * @property int $id
 * @property text $content
 * @property int $to_id
 * @property int $from_id
 * @property User $to
 * @property User $from
 * @property Carbon $created_at
 * @property Carbon $read_at
 * @property Carbon $updated_at
 */
class Message extends Model
{

    public function to()
    {
        return $this->belongsTo(User::class, 'to_id');
    }

    public function from()
    {
        return $this->belongsTo(User::class, 'from_id');
    }
}<commit_msg>added phpdoc to message object<commit_after><?php

namespace Flagrow\Messaging\Models;

use Carbon\Carbon;
use Flarum\Core\User;
use Illuminate\Database\Eloquent\Model;

/**
 * @property int $id
 * @property text $content
 * @property int $to_id
 * @property int $from_id
 * @property User $to
 * @property User $from
 * @property Carbon $created_at
 * @property Carbon $read_at
 * @property Carbon $updated_at
 */
class Message extends Model
{

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function to()
    {
        return $this->belongsTo(User::class, 'to_id');
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function from()
    {
        return $this->belongsTo(User::class, 'from_id');
    }
}
{'fraction_non_alphanumeric': 0.13126323218066338, 'fraction_numerical': 0.0, 'mean_word_length': 3.3363914373088686, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7520828', 'n_tokens_mistral': 475, 'n_tokens_neox': 464, 'n_words': 112}