for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Kdyby (http://www.kdyby.org)
*
* Copyright (c) 2008 Filip Procházka ([email protected])
* For the full copyright and license information, please view the file license.txt that was distributed with this source code.
*/
namespace Kdyby\Doctrine\Mapping;
use Doctrine;
use Kdyby;
use Nette;
use Nette\Reflection;
* @author Filip Procházka <[email protected]>
class RuntimeReflectionService extends Doctrine\Common\Persistence\Mapping\RuntimeReflectionService
{
* Return a reflection class instance or null
* @param string $class
* @return \Nette\Reflection\ClassType
public function getClass($class)
return new Reflection\ClassType($class);
}
* Return an accessible property (setAccessible(true)) or null.
* @param string $property
* @return \Nette\Reflection\Property|NULL
public function getAccessibleProperty($class, $property)
try {
$property = new Reflection\Property($class, $property);
$property->setAccessible(TRUE);
return $property;
} catch (\ReflectionException $e) {
return NULL;