public function getConstructorParameters()
    {
        $parameters = new BeanParameterCollection();

        if (($ctor = $this->getClass()->getConstructor()) !== null) {

            foreach ($ctor->getParameters() as $param) {
                if ($this->hasProperty($param->getName()) === true) {
                    $parameters[] = new BeanParameter($this->getClass()->getName(), '__construct', $param->getName());
                }
            }
        }

        return $parameters;
    }
public function getConstructorParameters()
    {
        $parameters = new BeanParameterCollection();

        if (($ctor = $this->getClass()->getConstructor()) !== null) {

            foreach ($ctor->getParameters() as $param) {
                if ($this->hasProperty($param->getName()) === true) {
                    $parameters[] = new BeanParameter($this->getClass()->getName(), '__construct', $param->getName());
                }
            }
        }

        return $parameters;
    }
public function getConstructorParameters ( ) { $ parameters = new BeanParameterCollection ( ) ; if ( ( $ ctor = $ this -> getClass ( ) -> getConstructor ( ) ) !== null ) { foreach ( $ ctor -> getParameters ( ) as $ param ) { if ( $ this -> hasProperty ( $ param -> getName ( ) ) === true ) { $ parameters [ ] = new BeanParameter ( $ this -> getClass ( ) -> getName ( ) , '__construct' , $ param -> getName ( ) ) ; } } } return $ parameters ; }
Get the constructor parameters of the bean. Only parameters that have the same name
than a valid bean property will be returned.

@return \qtism\common\beans\BeanParameterCollection A collection of BeanParameter objects.
Get the constructor parameters of the bean . Only parameters that have the same name than a valid bean property will be returned .