日本語

Code & changes / API references

Symbol

Present declarations, parameters, return types, and members of an API.

Basic usage

Preview

find()public

src/Repository.php:24
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 / attributePurpose
.symbol-head / .symbol-metaThe symbol heading and source location.
.member / .member-head / .member-bodyAn individual member and its explanation.
.signature / .signature-name / .signature-paramThe signature, its name, and parameters.
.t-name / .t-key / .t-lit / .t-gen / .t-aliasType names, keywords, literals, generics, and aliases.
.private-surfaceA 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.