public function getFor($class, $strict = false)
    {
        if (isset($this->items[$class])) {
            return $this->items[$class];
        } elseif (!$strict) {
            foreach ($this->items as $blueprint) {
                if (is_subclass_of($class, $blueprint->class, true)) {
                    return $blueprint;
                }
            }
        }
        return null;
    }
public function getFor($class, $strict = false)
    {
        if (isset($this->items[$class])) {
            return $this->items[$class];
        } elseif (!$strict) {
            foreach ($this->items as $blueprint) {
                if (is_subclass_of($class, $blueprint->class, true)) {
                    return $blueprint;
                }
            }
        }
        return null;
    }
public function getFor ( $ class , $ strict = false ) { if ( isset ( $ this -> items [ $ class ] ) ) { return $ this -> items [ $ class ] ; } elseif ( ! $ strict ) { foreach ( $ this -> items as $ blueprint ) { if ( is_subclass_of ( $ class , $ blueprint -> class , true ) ) { return $ blueprint ; } } } return null ; }
Returns blueprint for specified class if exists in collection.

If strict = false, blueprint of parent class can be returned

@param string $class
@param bool $strict
@return Blueprint|null
Returns blueprint for specified class if exists in collection .