Code & changes / API references
Symbol
Present declarations, parameters, return types, and members of an API.
Basic usage
find()public
public function find(int $id): Post|null
Returns the post with the given ID, or null when it does not exist.
HTML
<section class="member">
<div class="member-head"><h3><code>find()</code><span class="chip chip-ghost">public</span></h3><span class="member-meta">src/Repository.php:24</span></div>
<div class="member-body">
<pre class="signature"><span class="t-key">public function</span> <span class="signature-name">find</span>(<span class="t-name">int</span> <span class="signature-param">$id</span>): <span class="t-name">Post</span>|<span class="t-key">null</span></pre>
<p>Returns the post with the given ID, or null when it does not exist.</p>
</div>
</section>Classes & attributes
| Class / attribute | Purpose |
|---|---|
.symbol-head / .symbol-meta | The symbol heading and source location. |
.member / .member-head / .member-body | An individual member and its explanation. |
.signature / .signature-name / .signature-param | The signature, its name, and parameters. |
.t-name / .t-key / .t-lit / .t-gen / .t-alias | Type names, keywords, literals, generics, and aliases. |
.private-surface | A member that is not part of the public API, visible with less emphasis. |
Usage notes
Visibility is not a judgment. Public does not mean success, and private does not mean danger.
Examples follow your system color scheme. Use ◐ in the header to try automatic, light, and dark themes.