# give/4.16.8.1/src/Framework/Models/Contracts/ModelReadOnly.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.8.1. 36 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.8.1/code/src/Framework/Models/Contracts/ModelReadOnly.php
- Raw: https://pluginprobe.com/plugins/give/4.16.8.1/raw/src/Framework/Models/Contracts/ModelReadOnly.php
- Modified: 2023-01-18T19:19:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.8.1/code/src/Framework/Models/Contracts/ModelReadOnly.php#L10-L20`.

```php
<?php

namespace Give\Framework\Models\Contracts;

use Give\Framework\Models\Model;
use Give\Framework\Models\ModelQueryBuilder;

/**
 * @since 2.24.0
 */
interface ModelReadOnly
{
    /**
     * @since 2.24.0
     *
     * @param  int  $id
     * @return Model
     */
    public static function find($id);

    /**
     * @since 2.24.0
     *
     * @return ModelQueryBuilder
     */
    public static function query();

    /**
     * @since 2.24.0
     *
     * @param $object
     * @return Model
     */
    public static function fromQueryBuilderObject($object);
}

```
