for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cycle\ORM\Promise\Declaration\Extractor;
final class Properties
{
public function getProperties(\ReflectionClass $reflection): array
$properties = [];
foreach ($reflection->getProperties() as $property) {
if ($this->isIgnoredProperty($property)) {
continue;
}
$properties[] = $property->getName();
return $properties;
private function isIgnoredProperty(\ReflectionProperty $property): bool
return $property->isPrivate() || $property->isStatic();