PDF rausgenommen
This commit is contained in:
22
msd2/myoos/vendor/doctrine/reflection/docs/en/index.rst
vendored
Normal file
22
msd2/myoos/vendor/doctrine/reflection/docs/en/index.rst
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
Reflection Documentation
|
||||
=================
|
||||
|
||||
The Doctrine Reflection documentation is a reference guide to everything you need
|
||||
to know about the reflection project.
|
||||
|
||||
Getting Help
|
||||
------------
|
||||
|
||||
If this documentation is not helping to answer questions you have about
|
||||
Doctrine Reflection don't panic. You can get help from different sources:
|
||||
|
||||
- The `Doctrine Mailing List <https://groups.google.com/group/doctrine-user>`_
|
||||
- Gitter chat room `#doctrine/reflection <https://gitter.im/doctrine/reflection>`_
|
||||
- Report a bug on `GitHub <https://github.com/doctrine/reflection/issues>`_.
|
||||
- On `StackOverflow <https://stackoverflow.com/questions/tagged/doctrine-reflection>`_
|
||||
|
||||
Getting Started
|
||||
---------------
|
||||
|
||||
The best way to get started is with the :doc:`Introduction <introduction>` section.
|
||||
Use the sidebar to browse other documentation for the Doctrine PHP Reflection project.
|
85
msd2/myoos/vendor/doctrine/reflection/docs/en/reference/index.rst
vendored
Normal file
85
msd2/myoos/vendor/doctrine/reflection/docs/en/reference/index.rst
vendored
Normal file
@ -0,0 +1,85 @@
|
||||
Introduction
|
||||
============
|
||||
|
||||
The Doctrine Reflection project is a simple library used by the various Doctrine projects which adds some additional
|
||||
functionality on top of the reflection functionality that comes with PHP. It allows you to get the reflection information
|
||||
about classes, methods and properties statically.
|
||||
|
||||
Installation
|
||||
============
|
||||
|
||||
The library can easily be installed with composer.
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
$ composer require doctrine/reflection
|
||||
|
||||
Setup
|
||||
=====
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
use Doctrine\Common\Reflection\Psr0FindFile;
|
||||
use Doctrine\Common\Reflection\StaticReflectionParser;
|
||||
use App\Model\User;
|
||||
|
||||
$finder = new Psr0FindFile(['App' => [
|
||||
'/path/to/project/src/App'
|
||||
]]);
|
||||
|
||||
$staticReflectionParser = new StaticReflectionParser(User::class, $finder);
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
echo $staticReflectionParser->getClassName();
|
||||
echo $staticReflectionParser->getNamespaceName();
|
||||
|
||||
StaticReflectionClass
|
||||
=====================
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
$staticReflectionClass = $staticReflectionParser->getReflectionClass();
|
||||
|
||||
echo $staticReflectionClass->getName();
|
||||
|
||||
echo $staticReflectionClass->getDocComment();
|
||||
|
||||
echo $staticReflectionClass->getNamespaceName();
|
||||
|
||||
print_r($staticReflectionClass->getUseStatements());
|
||||
|
||||
StaticReflectionMethod
|
||||
======================
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
$staticReflectionMethod = $staticReflectionParser->getReflectionMethod('getSomething');
|
||||
|
||||
echo $staticReflectionMethod->getName();
|
||||
|
||||
echo $staticReflectionMethod->getDeclaringClass();
|
||||
|
||||
echo $staticReflectionMethod->getNamespaceName();
|
||||
|
||||
echo $staticReflectionMethod->getDocComment();
|
||||
|
||||
print_r($staticReflectionMethod->getUseStatements());
|
||||
|
||||
StaticReflectionProperty
|
||||
========================
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
$staticReflectionProperty = $staticReflectionParser->getReflectionProperty('something');
|
||||
|
||||
echo $staticReflectionProperty->getName();
|
||||
|
||||
echo $staticReflectionProperty->getDeclaringClass();
|
||||
|
||||
echo $staticReflectionProperty->getDocComment();
|
||||
|
||||
print_r($staticReflectionProperty->getUseStatements());
|
4
msd2/myoos/vendor/doctrine/reflection/docs/en/sidebar.rst
vendored
Normal file
4
msd2/myoos/vendor/doctrine/reflection/docs/en/sidebar.rst
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
.. toctree::
|
||||
:depth: 3
|
||||
|
||||
reference/index
|
Reference in New Issue
Block a user