Searched defs:traits (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/Zend/
H A Dzend.h158 zend_class_entry **traits; member in struct:_zend_class_entry
H A Dzend_compile.c1065 /* Classes with traits are handled exactly the same, no early-bind here */
1421 ce->traits = NULL;
4371 zend_ast_list *traits = zend_ast_get_list(ast->child[0]); local
4377 for (i = 0; i < traits->children; ++i) {
4378 zend_ast *trait_ast = traits->child[i];
4382 zend_error_noreturn(E_COMPILE_ERROR, "Cannot use traits inside of interfaces. "
4517 "Traits can only be composed from other traits with the 'use' keyword. Error",
4585 /* Check for traits and proceed like with interfaces.
4589 ce->traits = NULL;

Completed in 14 milliseconds